Author |
|
BUPCGUY
Joined: 31 Dec 2006 Posts: 3
|
Posted: Sun 31 Dec '06 10:28 Post subject: Apache Shuts Down After A few Seconds |
|
|
Hello
I have just installed Apache and PHP and they seem to be working ok . When i try the test page i get all the info like i should . When i type the page in the browser it opens up properly but as soon as it opens i get a message saying Apache has encountered a problem and needs to close and then after about ten seconds it shuts down. I am not sure if this is a problem with Apache or my computer. Please help. Thankyou |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 31 Dec '06 17:11 Post subject: |
|
|
anything the error log or in the windows event log? |
|
Back to top |
|
BUPCGUY
Joined: 31 Dec 2006 Posts: 3
|
Posted: Sun 31 Dec '06 21:04 Post subject: |
|
|
There is nothing in the error messages or the log viewer. When i type in local host and i get the message that it works it doesnt disconnect then, its when i type in localhost/test.php to get the php info is when it shuts down. It may have something to do with the php extension i guess. It seems loke the html extension works ok. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 31 Dec '06 21:52 Post subject: |
|
|
ok, than, so I think the problem is in the PHP config.
in php.ini turn error logging on.
Code: |
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On
log_errors = On
error_log = "C:/php5/phperror.log
|
Don't forget to create phperror.log before starting.
Did you enable any extensions from php?
run a simple script like
Code: |
<?php
phpinfo();
?>
|
|
|
Back to top |
|
BUPCGUY
Joined: 31 Dec 2006 Posts: 3
|
Posted: Sun 31 Dec '06 22:01 Post subject: |
|
|
Thanks for the speedy reply. I will turn on error reporting and see what i get. I dont think i enabled any extensions as far as i know. The code you gave me is what i am running as a test. It actualy loads for about ten seconds until apache shuts down. Thats what i find strange about all of this. It seems like Apache and PHP are configured properly or the page wouldnt load at all. To me it seems like a problem with apache or my computer.
Here is some info from the error logs
[Sun Dec 31 13:50:16 2006] [error] [client 127.0.0.1] script 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test.php' not found or unable to stat
[Sun Dec 31 13:58:41 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php
[Sun Dec 31 13:58:41 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php
[Sun Dec 31 13:59:07 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sun Dec 31 13:59:07 2006] [notice] Apache/2.2.3 (Win32) PHP/5.1.6 configured -- resuming normal operations
[Sun Dec 31 15:31:51 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php
[Sun Dec 31 15:31:51 2006] [error] [client 127.0.0.1] PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: http://localhost/test.php
[Sun Dec 31 15:33:07 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sun Dec 31 15:33:07 2006] [notice] Child 2620: Starting thread to listen on port 80.
[Sun Dec 31 15:33:09 2006] [error] [client 127.0.0.1] PHP Strict Standards: phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for '-5.0/no DST' instead in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\test.php on line 3
[Sun Dec 31 15:38:15 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 03 Jan '07 16:55 Post subject: |
|
|
Quote: |
[Sun Dec 31 15:38:15 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. |
The errors before this are ok. This error message shows me that there is a memory leak in your PHP installation. You should reinstall your PHP.
If that do not fix the problem follow this setup
http://www.apachelounge.com/viewtopic.php?t=570 |
|
Back to top |
|