Changing php.ini and Cron
« on: August 07, 2008, 04:25:55 PM »
Well, first of all, commendable work on this. This software is really a sweet deal. Good job.

My crawl hangs, so I've been refreshing my crawl a lot and restarting it manually. I found a thread that talked about editing php.ini to allow scripts to run longer, but I found no line in it for max_execution_time (I did find a max_input_time though). Is it necessary to add that in, if it's not there, or does that mean that the problem is somewhere else?

I've got a cron job setup to run this weekly, but I'm worried about that hanging too.

My url for the generator is [ External links are visible to forum administrators only ]
Re: Changing php.ini and Cron
« Reply #1 on: August 07, 2008, 04:54:13 PM »
Hello,

yes, if you don't have that line, try to add it manually. Then create a "phpinfo.php" file in generator folder with:
Code: [Select]
<?phpphpinfo();?>
and open it in browser to see current php settings.
Re: Changing php.ini and Cron
« Reply #2 on: August 07, 2008, 04:56:27 PM »
What would be a good length to set that to? A couple of thousand seconds?
Re: Changing php.ini and Cron
« Reply #3 on: August 07, 2008, 05:10:35 PM »
I changed max_execution_time to 180 and uploaded the new php.ini, but the phpinfo.php still shows 30. How do I reset that?

And anyway, would the cron job have the same problem or would it just work around it? I'm mostly interested in having the script auto-run and ping google automatically. As long as cron can run it successfully without hanging for a week, I'm happy with how it works.
Re: Changing php.ini and Cron
« Reply #4 on: August 08, 2008, 12:56:42 AM »
Would running the script from the command line even defeat the php timeout, or would it just time out anyay if I ran it from ssh?
Re: Changing php.ini and Cron
« Reply #5 on: August 10, 2008, 02:35:44 PM »
Hello,

the scripts running in command line or vi cron job are normally executed with different php.ini, so they have own settings (including max_execution_time and memory_limit), which are usually less restrictive than php.ini for web scripts.
So, yes - I would suggest to run it from command line and if it works, just setup a cron job for it.