|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
long scripts crashing apache server on windows
I have a long php script - it gets data(screen scraping) of another website. After about 2 minutes of execution it ends up crashing apache server.
other smaller scripts work fine... I have increased the timeout and everything - maybe memory utilization problem? I have PHP Version 4.3.3...Apache 1.3.27 Do we generally write scripts when we are writing such a long one ? what are the other options ? Thanks a lot in advance |
|
#2
|
|||
|
|||
|
What was the ram when you tried it on the other server and when the script execution stops, whats the error you get ?
|
|
#3
|
|||
|
|||
|
Thanks for you reply...
I get a program error...apache.exe has generated error and will be closed by windows. And the RAM is sufficient i think ...its 256 MB AFter the script executes for about 7 minutes i get this error. Regards, Janie |
|
#4
|
|||
|
|||
|
Thats normal on apache, it happened with me too, especially using GD libraries or such thing, and max execution doesnt works due to the fact how windows works.
My problem was solved by upgrading my ram to 768. It was 512 mb ago. Or try using the CGI binary instead of the ISAPI module.. |
|
#5
|
|||
|
|||
|
"Or try using the CGI binary instead of the ISAPI module.."
Didnt get you here ? Thanks Again Janie |
|
#6
|
|||
|
|||
|
When you install php there are two options, either to install it as an ISAP module or CGI binary.
Your httpd.conf must have : LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php OR ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" If its the first one, trying switching to second.. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > long scripts crashing apache server on windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|