after a crawl, the permission for sitemap.html was auto set to 666 after crawl

my website [ External links are visible to forum administrators only ] shows 500 Internal Server Error

my Solution: FTP and change to 644 or 755

However i crawl weekly, how can i AVOID FTPing weekly to manual change permissions?

Mr Goh
Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #1 on: May 26, 2009, 09:12:54 AM »
just an update to my problem which still EXISTS...

crawl is successful, new ror/urllist/sitemap.xml/sitemap.html is generated.
i FTP in and double checked the time so i can 'safely' say v3.0 works

however is there a setting to DISABLE chmod -> to '666' after crawling ?
remind as 664 will be good (as my prev version v2.x did)
Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #2 on: May 26, 2009, 09:18:39 AM »
message from my host provider on this permission issue

Hi,

You will need to use 755 for your file to make it work.

Any file that has file write permission for group or world will not be readable.

Best Regards,

John Lee
SuperSupport Staff
(65) 6288 6264

Vodien Internet Solutions
[ External links are visible to forum administrators only ]

Ticket Details
===================
Ticket ID: LFL-590766
Department: Sales
Priority: Low
Status: Open
Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #3 on: May 26, 2009, 11:26:40 PM »
Please try to modify pages/page-crawlproc.inc.php file and add this below the eval() line:
Code: [Select]
chmod("/path/to/generator/data/sitemap.html", 0644);
Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #4 on: May 27, 2009, 02:24:52 AM »
soved my problem(sitemap.html)  but is

page-sitemap-detail.inc.php NOT page-crawlproc.inc.php

u may close this ticket thanks!

Please try to modify pages/page-crawlproc.inc.php file and add this below the eval() line:
Code: [Select]
chmod("/path/to/generator/data/sitemap.html", 0644);
Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #5 on: August 24, 2009, 07:54:00 PM »
I'm having trouble here too.

A little history is important:

In May of last year I installed suPHP on my server to increase protection against hackers.

The old version of your sitemap generator continued to work just fine.

Two days ago I upgraded to the current version of the sitemap generator.

After I made the changes outlined above, I was able to generate the sitemaps without issue as long as I fired the task from the "Run" button in the Crawling tab.

As soon as the cron job took over though, I reverted to 666. 

Can I ask if you have considered making your xml-sitemap generator suPHP compliant?

Please advise soonest.

Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #6 on: August 24, 2009, 08:31:32 PM »
Hello,

in case if your command line script is running under a different user, you should "change owner" of the target file to allow write access to it, while keeping permissions set to 0644.
Re: update to v3.0 and sitemap.html failed 500 Internal Server Error
« Reply #7 on: August 24, 2009, 08:54:04 PM »
Thank you for the prompt reply Oleg.

By "target file," do you mean the sitemap.html file, or the php file that the cron job is firing?