I am trying to solve a problem with calling cronjob.
Initially, I had a similar problem to martinericbailey:
martinericbailey wrote:
QUOTE:
I have installed Feed2post 2.21 on Joomla 1.5.3 along with Cronjob 1.33. If I run the cronjob URL from the web browser it appears to work without error, but if I run it from the 'Scheduled tasks' section of my ISP's control panel I get the following errors:
/home/sites/REMOVEDFORSECURITY/public_html/cronstuff/cronjob.php: line 1: ?php
: No such file or directory
/home/sites/REMOVEDFORSECURITY/public_html/cronstuff/cronjob.php: line 2: /*
: No such file or directory
/home/sites/REMOVEDFORSECURITY/public_html/cronstuff/cronjob.php: line 3: cgi-bin: command not found
/home/sites/REMOVEDFORSECURITY/public_html/cronstuff/cronjob.php: line 4: unexpected EOF while looking for matching `''
/home/sites/REMOVEDFORSECURITY/public_html/cronstuff/cronjob.php: line 13: syntax error: unexpected end of file
and this was because I was call the PHP script from my cpanel cron jobs so I changed to using the advice:
lynx -source
http://domain/cronjobs/cronjob.php
Unfortunately, this returned the following server error:
QUOTE:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@****** and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at ****** Port 80
A similar thing occurs when I try and call the script from a browser.
Any ideas?
Chris