GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Sep-2004, 06:33
faulkj faulkj is offline
New Member
 
Join Date: Sep 2004
Posts: 3
faulkj is on a distinguished road
Unhappy

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  
Old 26-Sep-2004, 21:32
JUNK KED JUNK KED is offline
Junior Member
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough

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  
Old 27-Sep-2004, 04:58
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
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
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #4  
Old 27-Sep-2004, 14:13
faulkj faulkj is offline
New Member
 
Join Date: Sep 2004
Posts: 3
faulkj is on a distinguished road
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  
Old 27-Sep-2004, 14:50
faulkj faulkj is offline
New Member
 
Join Date: Sep 2004
Posts: 3
faulkj is on a distinguished road
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 GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache / PHP problem, maybe output length? HaganeNoKokoro Apache Web Server Forum 2 08-Sep-2004 07:22
apache php no longer working (MX??) XP?? ChicoMendez Apache Web Server Forum 5 30-Aug-2004 10:51
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26
Apache - problems using PHP outside the intranet ooandioo Apache Web Server Forum 6 04-Feb-2004 09:27
Problems with apache win 98 php and vhosts Kplonk Computer Software Forum - Windows 2 22-May-2002 10:06

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:24.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.