I have installed the google site map script. I do not have shell access to my account but I have cron jobs which I used to set up running the script using the manual way you showed (php -f). My cron job is returning me the following error and I was wondering if you had ever encountered this before. Thanks for your help.
-Rick
Warning: session_start(): Cannot send session cookie - headers already sent in /home/richar12/public_html/sites/CMS_MAIN/core/Core.php on line 304
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/richar12/public_html/sites/CMS_MAIN/core/Core.php:304) in /home/richar12/public_html/sites/CMS_MAIN/core/Core.php on line 304
SQL: insert CMS_MAIN_mod_stats_today (ip, username, date, id) values (NULL, 'unknown', '08-10-2006', 1166) unknown error
so... could it be, that you need the "cd" statement first? "cannot send session cookie" means, that there's some php output and php tries to output something else afterwards.
if the "cd" command isn't enough, you might want to re-check your Core.php and conf/config.php for superfluous empty lines / linebreaks.
I have a different issue. I just installed and when I run the script it appears to run I just have NO OUTPUT not a single thing, If I dont specify the domain name I do get a message telling me I have to and lists the ones I put in the inc file. What am I missing?
It generates a sitemap.xml.gz and sends it to Google. You can check, if the sitemap.xml.gz has been created. If it has, there's no need for additional output.
Also, if the transmission is ok, there's no need to print out an message about that. That's the way Unix is -- no output, no worries.
a) you've fixed "cd /home/kiesler.at/sitemap" to read the path to your sitemap script and that path exists
b) /usr/bin/php exists ("ls -lad /usr/bin/php")
c) /bin/gzip exists ("ls -lad /bin/gzip")
d) wget exists ("which wget")
Sorry I should be more correct in the question. I am simply running the command line manually within the tools/sitemap directory. I am not using an automated system yet so I dont think those items are the issue.
[code]php -f index.php ftwtexas.com[/code]
run directly in the /www/ftwtexas.com/tools/sitemap dir
I checked the inc and that file is correct. If I run that with no ftwtexas.com following index I do get an error telling me I need to pick one of the two domains I have in the inc file.
Another thing to check. If you look into your site, which modules do you use? How many item are stored with the modules? (e.g. 4 pagemaster pages, 2 announcements, ...)
Actually, this script is completely independent of your web server (in your case IIS). It is somewhat OS dependant, but not really. In case of Windows, you'd need to install a couple of Cygwin tools
a) crontab
b) gzip
c) wget
d) php command line edition
...that should be all, through I haven't tested it yet. Cygwin is a "Linux distribution compiled for Windows" that runs natively on Windows. You can find it on the Cygwin Homepage, the installation is pretty straight-forward.