Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The XML sitemap module's requirements are no different than a standard PHP installation.
Web server
- Your Drupal install should not contain a sitemap.xml file in the Drupal root directory as this will prevent the module from working.
- For larger sites, your server must be able to handle large write operations to your site's files and temporary directories during cron.
- You must have cron configured properly in order for the sitemaps to be generated.
PHP
- PHP XML extension. This extension is enabled by default in a standard PHP installation, except for some CentOS systems. This extension is required to run Drupal 7.
- PHP XML Writer extension. This extension is enabled by default in a standard PHP installation, except on some Gentoo systems.
Comments
What to do if xmlwriter is not loaded
If you hit a WSOD upon visiting your administration page (/admin) after enabling XML SiteMap it may be because your host has disabled the xmlwriter extension. If this is the case, your error logs will include a message similar to this:
You can add the following lines (minus the php tags) to the bottom of settings.php to load xmlwriter: