WAMP, can't get errors
Posted: Tue Aug 18, 2009 4:39 pm
Hello all,
I'm trying to run a WAMP (Windows, Apache, MySQL, PHP) server from my computer for developing a site.
I got Apache up and running and I've successfully installed PHP, but it's not working completely as I expected.
I tried a regular page with just phpinfo() and it works fine in Google Chrome.
My first problem:
Internet Explorer and chrome seem to try to load the page twice for some reason, and after the phpinfo comes up for a brief fraction of a second, it switches to a "could not load" the site error page. Firefox does this as well. What's going on?
My second problem:
In php.ini I set:
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 0 (I've also tried setting this to 1024)
error_log = (Path to my work folder)\php_errors.log
I've run this with php files that have no errors and they load up fine. Whenever I'm trying to load a php file I'm developing however, it fails!
In Google chrome I'm told that the connection resets, in IE the webpage cannot be loaded, and I can't remember what Firefox says. Not only does it not show any errors, the error log file I specified remains empty!
Not sure what to do I looked around and I realized I had yet to check my apache log to see what's going on:
Here's what I've observed:
Trying to load up a phpinfo file (in IE):
apache's access.log reports:
127.0.0.1 - - [18/Aug/2009:17:24:21 -0400] "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [18/Aug/2009:17:24:21 -0400] "GET /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
(This ends up with generic "Internet Explorer cannot display the webpage." Why are there two requests?)
apache's error.log reports:
[Tue Aug 18 17:24:22 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
[Tue Aug 18 17:24:22 2009] [notice] Apache/2.2.13 (Win32) PHP/5.3.0 configured -- resuming normal operations
and proceeds with some regular "created child process," "child process is running," "acquired start mutex," "starting 64 worker threads," etc.
same unchanged php info file (in Google Chrome):
apache's access.log reports:
127.0.0.1 - - [18/Aug/2009:17:26:56 -0400] "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [18/Aug/2009:17:26:56 -0400] "GET /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
apache's error.log reports:
[Tue Aug 18 17:26:56 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
[Tue Aug 18 17:26:56 2009] [notice] Apache/2.2.13 (Win32) PHP/5.3.0 configured -- resuming normal operations
If you guys could tell me what's wrong with this stuff I'll fix it and try it again with a php file that has an intentional error in it and see if that works too.
Thanks for any help guys!
EDIT:
I made it sound like only IE sends two http requests, but chrome does as well.
I'm trying to run a WAMP (Windows, Apache, MySQL, PHP) server from my computer for developing a site.
I got Apache up and running and I've successfully installed PHP, but it's not working completely as I expected.
I tried a regular page with just phpinfo() and it works fine in Google Chrome.
My first problem:
Internet Explorer and chrome seem to try to load the page twice for some reason, and after the phpinfo comes up for a brief fraction of a second, it switches to a "could not load" the site error page. Firefox does this as well. What's going on?
My second problem:
In php.ini I set:
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 0 (I've also tried setting this to 1024)
error_log = (Path to my work folder)\php_errors.log
I've run this with php files that have no errors and they load up fine. Whenever I'm trying to load a php file I'm developing however, it fails!
In Google chrome I'm told that the connection resets, in IE the webpage cannot be loaded, and I can't remember what Firefox says. Not only does it not show any errors, the error log file I specified remains empty!
Not sure what to do I looked around and I realized I had yet to check my apache log to see what's going on:
Here's what I've observed:
Trying to load up a phpinfo file (in IE):
apache's access.log reports:
127.0.0.1 - - [18/Aug/2009:17:24:21 -0400] "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [18/Aug/2009:17:24:21 -0400] "GET /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
(This ends up with generic "Internet Explorer cannot display the webpage." Why are there two requests?)
apache's error.log reports:
[Tue Aug 18 17:24:22 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
[Tue Aug 18 17:24:22 2009] [notice] Apache/2.2.13 (Win32) PHP/5.3.0 configured -- resuming normal operations
and proceeds with some regular "created child process," "child process is running," "acquired start mutex," "starting 64 worker threads," etc.
same unchanged php info file (in Google Chrome):
apache's access.log reports:
127.0.0.1 - - [18/Aug/2009:17:26:56 -0400] "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [18/Aug/2009:17:26:56 -0400] "GET /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
apache's error.log reports:
[Tue Aug 18 17:26:56 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
[Tue Aug 18 17:26:56 2009] [notice] Apache/2.2.13 (Win32) PHP/5.3.0 configured -- resuming normal operations
If you guys could tell me what's wrong with this stuff I'll fix it and try it again with a php file that has an intentional error in it and see if that works too.
Thanks for any help guys!
EDIT:
I made it sound like only IE sends two http requests, but chrome does as well.