Hello,
as mentioned in PM, on your server the "owner" userid for the folder containing sitemap should be the same as for php script file.
You should set generator configuration to store sitemap.xml in generator/ folder, and then copy .htaccess file from the first website that I created for you.