BUG: Compress sitemap using GZip does not work
« on: January 18, 2011, 10:16:00 PM »
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.

Re: BUG: Compress sitemap using GZip does not work
« Reply #1 on: January 19, 2011, 02:33:45 PM »
Hello,

try to manually set the option in generator/data/generator.conf file:
<option name="xs_compress">1</option>
Re: BUG: Compress sitemap using GZip does not work
« Reply #2 on: January 19, 2011, 03:36:54 PM »
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
Re: BUG: Compress sitemap using GZip does not work
« Reply #3 on: January 19, 2011, 08:23:39 PM »
You should manually create empty file named sitemap.xml.gz in domain root and set 0666 permissions to it (same for mobile)
Re: BUG: Compress sitemap using GZip does not work
« Reply #4 on: January 20, 2011, 05:16:21 PM »
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?
Re: BUG: Compress sitemap using GZip does not work
« Reply #5 on: January 21, 2011, 12:15:20 AM »
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)