XML Sitemaps Generator

    Advanced search
Sitemap Generator Forum
July 20, 2008, 05:06:32 PM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Sitemap software 2.9 released - Email notifications, html sitemap customizing and more
6813 Posts in 1681 Topics by Members
Latest Member: xiaolin
Pages: [1]
  Print  
Author Topic: sitemap owner battle between cron job and web server  (Read 4446 times)
dvanrooy
Registered Customer
Newbie
*
Posts: 2


View Profile
« on: April 03, 2007, 08:06:52 AM »

I have a problem with creating the gzipped sitemap when I run sitemap generator from a cron job after running it via the web interface.  The error I get:

Warning: gzopen(/home/xxx/public_html/africadisc/sitemap.xml.gz) [function.gzopen]: failed to open stream: Permission denied in /home/cbloubud/public_html/africadisc/admin/xmlsmgen/pages/class.xml-creator.inc.php(2) : eval()'d code on line 117

led me to check the permissions of the gz file.  I last ran the program from the web interface and all worked OK.  But with that, the gz file is owned by "nobody" and has 644 permissions.  So now  when the cron job ran, it could not overwrite the file since it's running as my user account.  This sounds like some umask settings problem somewhere?Huh  How to fix?

Thanks,
BaliDave

Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« Reply #1 on: April 04, 2007, 11:28:33 PM »

Hello,

you should manually create empty
Warning: gzopen(/home/xxx/public_html/africadisc/sitemap.xml.gz file and set 0666 permissions to it.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!