• Welcome to Sitemap Generator Forum.
 

BUG: Compress sitemap using GZip does not work

Started by david68, January 18, 2011, 10:16:00 PM

Previous topic - Next topic

david68

I am unable to enact compressed sitemaps. I select the Compress sitemap using GZip option, click save, but it does not stay selected. My XML sitemap is getting up to 2mb and they need to be smaller.


XML-Sitemaps Support

Hello,

try to manually set the option in generator/data/generator.conf file:
<option name="xs_compress">1</option>

david68

Thanks. That added it. I saw that the conf file was 644, so I changed to 666 (security risk?) and it can write from the control panel, so it is a permissions issue. I'm guessing that the conf file should not be 666.

Also, after adding the compress option, it automatically added this error message, but there are no files:
An error occured
Sitemap file is not writable: /var/www/vhosts/xxxx/httpdocs/sitemap.xml.gz
Sitemap file is not writable: /var/www/vhosts/xxxx/httpdocs/mobilesitemap.xml.gz

XML-Sitemaps Support

You should manually create empty file named sitemap.xml.gz in domain root and set 0666 permissions to it (same for mobile)

david68

Thanks. Is all working now.

One question, the generator.conf file was 644, but I changed to 666 to allow updates from the control panel. Is this a security risk?

XML-Sitemaps Support

Direct access to data/ folder is disallowed by .htaccess file, so it's not a risk, but to be on a safer side I'd switch to 0644 (and use 0666 only if configuraion needs to be updated)