Hi David,
Hope all is going well. I wondered if you could help me with some issues I'm having with fetch.php and import_slow.php.
I have a number of CRON jobs set up for my other sites which use cron.php and all work fine. For the site I'm working on currently, I set up cron.php which works for most feeds except a handful which are obviously too big and are not imported so I have been trying to use fetch.php and import_slow instead.
When fetch or import_slow run I get the error message below:
"Status: 404 Not Found
Content-type: text/html
No input file specified."
I have double checked the paths and they look fine to me. I wondered if you could tell me if cron.php works..... should fetch.php and import_slow.php work also? I notice there is quite a lot on the forum on this topic but the posts looked through look quite a few years old...
The two CRON jobs I'm using are:
/web/cgi-bin/php5 "$HOME/html/Sites/MySiteName/pt/pt/scripts/import_slow.php?filename=@MODIFIED&password=xxxxxxxxxx"
/web/cgi-bin/php5 "$HOME/html/Sites/MySiteName/pt/pt/scripts/fetch.php @ALL"
I set up cron.php for this site using the paths above and it works fine except obviously some feeds are too large to be imported.
Thanks in advance.
Regards
Chris
Hi David,
Thanks for your quick reply to my post. I have tried both /usr/bin/php and /usr/local/bin/php but both result in the same error message as before. I have also edited php.ini file as you suggested but this has not altered the error. I wondered if you might have any other ideas on how I might resolve this issue?
Thanks in advance.
Regards
Chris
Hi Chris,
I'll email you a combined fetch / import script cron_slow.php to have a go with - I'm not totally sure how the 404 error is coming about (I assume it's being generated by the cgi version of PHP when invoked in "command line" mode) but I'll pick that up with you if the same problem occurs with the new version...
Cheers,
David.
--
PriceTapestry.com
Hi Chris,
Rather than /web/cgi-bin/php5, which is probably running with a "web safe" PHP configuration, is
/usr/bin/php
or
/usr/local/bin/php
...available on your server?
Using whichever of those is available should be all you need to do, but if still configured for a maximum execution time, and you have root / admin access to your server then you will normally find the associated .ini file as
/etc/php5/cli/php.ini
Check for the entry something like;
max_execution_time = 60
...and REPLACE with:
max_execution_time = 0
...for unlimited execution time.
If you don't have /usr/bin/php, then check also for any other config folder in /etc/php5 that correlates with the /web/cgi-bin/ version that you're using where you may be able to make the same modification...
Hope this helps!
Cheers,
David.
--
PriceTapestry.com