![]() |
|
#1
|
|||
|
|||
PHP crashing/restarting Apache - PLEASE HELP ME!!So I upgraded the hard drive on my server installing Windows XP and the newest versions of Apache (2.0.51) and PHP (5.0.1) on the new drive. Everything was working out fine until I realized that several of my PHP scripts were not working with the new setup.
Unfortunately, I accidentally formatted the old hard drive, so now I can't go back and see what was different that worked on the old setup. I know this: every PHP script that does serious file processing (either parsing a long file or cycling through something like 400 files) will cause Apache to crash and then restart. Sometimes repeatedly so that the browser loads halfway through the page over and over. Sometimes with smaller scripts, after several of these reloads the PHP will work and the page will load all the way. When I look at the Apache error log, I see this for each crash/restart (the child process # is different each time): [Thu Sep 23 04:49:56 2004] [notice] Parent: child process exited with status 4294967295 -- Restarting. [Thu Sep 23 04:49:59 2004] [notice] Parent: Created child process 3764 [Thu Sep 23 04:50:00 2004] [notice] Child 3764: Child process is running [Thu Sep 23 04:50:00 2004] [notice] Child 3764: Acquired the start mutex. [Thu Sep 23 04:50:00 2004] [notice] Child 3764: Starting 250 worker threads. I've tried every combination of Apache 2.0.48 through 2.0.51 with PHP 4.3.3 through 5.0.1. I've tried changing all the timeout settings I could find in php.ini and httpd.conf. I've changed around all the fopen settings in php.ini. I'm 98% sure I hadn't changed around anything in php.ini with my old setup. I did have a lot of custom settings in httpd.conf, but would anything in there cause this?? I don't know what else to do. I'm desperate! Does anyone out there have any idea how to get my stuff working again?? Thanks, Joshua |
|||
|
#2
|
|||
|
|||
Try loading a ready to go set up....Try loading a ready to go set up....3 in 1 php,apache and mysql.
www.easyphp.org I use this on XP. It worked first time out of the box!! No set up involved php triad is another( I don't use this) If the scripts do not work then check php config, each new php has changed the way variables are accessed, php.net has the list of changes for each version. Also different mods come with different versions. By the way make sure apache is not in startup menu in XP or else new Apache wont work properly after install. To check this turn off computer, restart then check tasks processes if you see apache mentioned it is running bfore you turn it on. junkked. |
|
#3
|
||||
|
||||
|
It could be that PHP is crashing your Apache2...
PHP is not yet stable on Apache2 this explains why http://nl.php.net/manual/en/faq.inst...lation.apache2 but it doesn't have to be that.. we have 4 p4HT comps at school and they work perfectly fine with apache2 and PHP 4.3.9 |
|
#4
|
|||
|
|||
|
I know my PHP and APACHE are set up correctly from several years experience setting them up.
Now I think this is an APACHE problem because I tried to open a directory that had over 200 files in it and that I had "Indexing" turned on for and the exact same thing happened. I opened the link to th dir in my browser, I saw the list of files start to load for a split second and then the "cannot find page" error screen pops up. When I look in the APACHE error log, I see the same message as above. Since this process has nothing to do with PHP, this must be an APACHE thing....... joshua |
|
#5
|
|||
|
|||
|
I should also note that my original program was running on APACHE 2.0.4(?) with PHP 4.3.(?). the question marks mean I can't remember....
|
Recent GIDBlog
Review: Gel laptop cooling pad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache / PHP problem, maybe output length? | HaganeNoKokoro | Apache Web Server Forum | 3 | 07-Aug-2008 05:42 |
| apache php no longer working (MX??) XP?? | ChicoMendez | Apache Web Server Forum | 5 | 30-Aug-2004 11:51 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 03:26 |
| Apache - problems using PHP outside the intranet | ooandioo | Apache Web Server Forum | 6 | 04-Feb-2004 10:27 |
| Problems with apache win 98 php and vhosts | Kplonk | Computer Software Forum - Windows | 2 | 22-May-2002 11:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The