Try this:
1. create an empty sitemap.xml file in the desired directory (normally site’s root dir):
# touch /var/www/default/html/sitemap.xml
– replace example’s directory with your path –
2. Set up permissions so apache (or the webserver you use) can write to it:
# chown apache:apache /var/www/default/html/sitemap.xml
– replace apache with your webserver process user –
# chmod 774 /var/www/default/html/sitemap.xml
3. Test the XML Sitemap generator.
Hope it works!
Jorge S.
https://www.kernel-panik.com/