From: Tommy Pham on 17 Oct 2009 07:35 ----- Original Message ---- > From: "cr.vegelin(a)gmail.com" <cr.vegelin(a)gmail.com> > To: Tommy Pham <tommyhp2(a)yahoo.com>; general php <php-general(a)lists.php.net> > Sent: Sat, October 17, 2009 4:33:02 AM > Subject: Re: [PHP] all local sites stopped working ... > > ----- Original Message ----- From: "Tommy Pham" > To: "general php" > Sent: Saturday, October 17, 2009 1:08 PM > Subject: Re: [PHP] all local sites stopped working ... > > > > ----- Original Message ---- > >> From: "cr.vegelin(a)gmail.com" > >> To: Tommy Pham ; general php > >> Sent: Sat, October 17, 2009 4:00:24 AM > >> Subject: Re: [PHP] all local sites stopped working ... > >> > >> ----- Original Message ----- From: "Tommy Pham" > >> To: "general php" > >> Sent: Saturday, October 17, 2009 11:54 AM > >> Subject: Re: [PHP] all local sites stopped working ... > >> > >> > >> > ----- Original Message ---- > >> >> From: "cr.vegelin(a)gmail.com" > >> >> To: John Black > >> >> Cc: Tommy Pham ; php-general(a)lists.php.net > >> >> Sent: Sat, October 17, 2009 2:44:32 AM > >> >> Subject: Re: [PHP] all local sites stopped working ... > >> >> > >> >> ----- Original Message ----- From: "John Black" > >> >> To: > >> >> Cc: "Tommy Pham" ; > >> >> Sent: Saturday, October 17, 2009 11:08 AM > >> >> Subject: Re: [PHP] all local sites stopped working ... > >> >> > >> >> > >> >> >> cr.vegelin(a)gmail.com wrote: > >> >> >> Where / how to look for a PHP specific log file ? > >> >> > > >> >> > Inside php.ini is the option to specify a separate PHP log file > >> >> > here is the setting for my main system (Linux) > >> >> > > >> >> > error_log = /home/user/php_log.txt > >> >> > > >> >> > Remember to restart your webserver after adjusting php.ini > >> >> > > >> >> > EDIT: Sry, for the double post, I did not use reply all. > >> >> > -- >> Thanks John, > >> >> > >> >> In php.ini I defined: error_log = C:\Inetpub\wwwroot\PHPError.log > >> >> then restarted the server with iisreset.exe > >> >> then started with IE: http://127.0.0.1/.../phpinfo.php > >> >> and after 10 minutes still "Connecting / Waiting for .../phpinfo.php" > >> >> and still no C:\Inetpub\wwwroot\PHPError.log created ... > >> >> > >> > > >> > I see several problems. > >> > > >> > 1) It's bad practice to put the log file in C:\Inetpub\wwwroot where > > anyone > >> can access it. It's a major security issue. > >> > 2) It's been over 3 years since I dealt (hands on) with WinXP so here > > goes... > >> IIS by default runs as NETWORK SERVICE. That builtin account does not have > >> create/modify rights on C:\Inetpub\wwwroot (by default). Thus you wouldn't be > >> able to see the file created. > >> > > >> >> and after 10 minutes still "Connecting / Waiting for .../phpinfo.php" > >> > > >> > This is a good sign as it seems IIS is trying to run PHP but having > some > >> problems. Check the System & Application event logs for errors. Change > >> phperror.log file location, restart IIS, and try phpinfo.php again. > >> > > >> Hi Tommy, > >> > >> In php.ini I changed to: error_log = C:\PHPerror.log > >> restarted the IIS server, then http://127.0.0.1/.../phpinfo.php > >> and after 5 minutes still "Connecting / Waiting for .../phpinfo.php" > >> > >> Then I changed to: error_log = C:\tmp\PHPerror.log > >> restarted the IIS server, then http://127.0.0.1/.../phpinfo.php > >> and after 5 minutes still "Connecting / Waiting for .../phpinfo.php" > >> > > > > You'll need to grant modify permission to NETWORK SERVICE for the folder > C:\tmp. Run the below command in the command prompt: > > > > cacls /t /e /g "NETWORK SERVICE":c c:\tmp > > > >> I will look for all local filenames containing the string "log" ... > >> > > Having in php.ini: error_log = C:\tmp\PHPerror.log > I gave from the command prompt: > cacls /t /e /g "NETWORK SERVICE":c c:\tmp Did you restart IIS after this command? > then in IE: http://127.0.0.1/.../phpinfo.php > and still "Connecting / Waiting for .../phpinfo.php" > > Apparently it is not a write permission problem. > > > > -- PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php
From: cr.vegelin on 17 Oct 2009 07:49 ----- Original Message ----- From: "Tommy Pham" <tommyhp2(a)yahoo.com> To: "general php" <php-general(a)lists.php.net> Sent: Saturday, October 17, 2009 1:29 PM Subject: Re: [PHP] all local sites stopped working ... > ----- Original Message ---- >> From: "cr.vegelin(a)gmail.com" <cr.vegelin(a)gmail.com> >> To: Tommy Pham <tommyhp2(a)yahoo.com>; general php >> <php-general(a)lists.php.net> >> Sent: Sat, October 17, 2009 4:19:17 AM >> Subject: Re: [PHP] all local sites stopped working ... >> >> ----- Original Message ----- From: "Tommy Pham" >> To: "general php" >> Sent: Saturday, October 17, 2009 1:02 PM >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> > ----- Original Message ---- >> >> From: "cr.vegelin(a)gmail.com" >> >> To: Tommy Pham ; general php >> >> Sent: Sat, October 17, 2009 3:57:48 AM >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> ----- Original Message ----- From: "Tommy Pham" >> >> To: "general php" >> >> Sent: Saturday, October 17, 2009 12:21 PM >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> >> >> > ----- Original Message ---- >> >> >> From: "cr.vegelin(a)gmail.com" >> >> >> To: John Black >> >> >> Cc: php-general(a)lists.php.net >> >> >> Sent: Sat, October 17, 2009 3:17:22 AM >> >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> >> >> ----- Original Message ----- From: "John Black" >> >> >> To: >> >> >> Cc: >> >> >> Sent: Saturday, October 17, 2009 11:53 AM >> >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> >> >> >> >> >> > cr.vegelin(a)gmail.com wrote: >> >> >> >> In php.ini I defined: error_log = >> >> >> >> C:\Inetpub\wwwroot\PHPError.log >> >> >> >> then restarted the server with iisreset.exe >> >> >> >> then started with IE: http://127.0.0.1/.../phpinfo.php >> >> >> >> and after 10 minutes still "Connecting / Waiting for >> >> >> .../phpinfo.php" >> >> >> >> and still no C:\Inetpub\wwwroot\PHPError.log created ... >> >> >> >> Other suggestions ? >> >> >> >> TIA, Cor >> >> >> > >> >> >> > So it is not just .php files which will not work? If you have >> >> >> >> > > >> trouble > >> >> with >> >> >> .html files as well then it almost sounds like a firewall issue >> >> >> since >> >> your >> >> >> connection "hangs" until timeout. >> >> >> > >> >> >> > Try this to see if the webserver is accepting a connection: >> >> >> > telnet 127.0.0.1 80 >> >> >> > Then type the two lines below, ending each one with the enter key >> >> >> > >> > >> (new > >> >> line) >> >> >> > HEAD / HTTP/1.1 >> >> >> > Host: 127.0.0.1 >> >> >> > (hit enter once more) >> >> >> > >> >> >> > And you should get an answer from your server, mine looks like >> >> >> > this: >> >> >> > HTTP/1.1 200 OK >> >> >> > Date: Sat, 17 Oct 2009 09:49:16 GMT >> >> >> > Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 >> >> >> > > >> >> SVN/1.6.5 >> >> >> PHP/5.3.0 with Suhosin-Patch >> >> >> > Content-Type: text/html;charset=ISO-8859-1 >> >> >> > Connection closed by foreign host. >> >> >> > >> >> >> > >> >> >> > Does this work? >> >> >> >> >> >> John, >> >> >> Opening a *.HTM file from Windows Explorer goes well. >> >> > >> >> > It's not the same thing as using your web browser and try to view >> >> > the > >> *.HTM >> >> file(s) through IIS. Notice the protocol difference file:// vs >> >> http://. >> >> > >> >> >> So the webserver is accepting a connection ... >> >> >> Nevertheless, where should I enter: telnet 127.0.0.1 80 ? >> >> >> From the OS prompt C:\ ? >> >> > >> >> > In a command prompt. Directory path doesn't matter. >> >> > >> >> From the C:\ prompt, I did: >> >> telnet 127.0.0.1 80 [Enter] >> >> HEAD / HTTP/1.1 [Enter] >> >> Host: 127.0.0.1 [Enter] >> >> [Enter] >> >> but all I get is a black window ... >> > >> > Looks like John was right about the firewall. What service pack did >> > you have >> before your recent windows update? You'll need to disable the firewall >> in >> services and try the telnet again. >> > >> >> Tommy, >> I did and do have Windows XP SP3. My firewall was turned off. >> I turned it On, but http://127.0.0.1/.../phpinfo.php is not working. >> I turned it Off, and http://127.0.0.1/.../phpinfo.php is not working >> and telnet commands don't show anything ... >> Any other idea ? >> TIA, Cor > > 1) Did you run that command for granting permission of NETWORK SERVICE for > the c:\tmp? and restart IIS? A: yes, I did restart IIS after every change in php.ini > 2) run 'netstat -ano' without the single quote in the command prompt and > show me what you see. Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1808 TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 848 TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 1808 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1950 0.0.0.0:0 LISTENING 1808 TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 1544 TCP 127.0.0.1:80 127.0.0.1:1952 CLOSE_WAIT 1808 TCP 127.0.0.1:80 127.0.0.1:1954 CLOSE_WAIT 1808 TCP 127.0.0.1:1025 0.0.0.0:0 LISTENING 1352 TCP 127.0.0.1:1029 0.0.0.0:0 LISTENING 2940 TCP 127.0.0.1:1056 0.0.0.0:0 LISTENING 3960 TCP 127.0.0.1:1288 127.0.0.1:1025 CLOSE_WAIT 908 TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING 1116 TCP 192.168.1.33:139 0.0.0.0:0 LISTENING 4 UDP 0.0.0.0:445 *:* 4 UDP 0.0.0.0:500 *:* 612 UDP 0.0.0.0:1026 *:* 1116 UDP 0.0.0.0:3456 *:* 1808 UDP 0.0.0.0:4500 *:* 612 UDP 127.0.0.1:123 *:* 916 UDP 127.0.0.1:1900 *:* 1088 UDP 127.0.0.1:1909 *:* 524 UDP 192.168.1.33:123 *:* 916 UDP 192.168.1.33:137 *:* 4 UDP 192.168.1.33:138 *:* 4 UDP 192.168.1.33:1900 *:* 1088 UDP 192.168.1.33:5353 *:* 1116 > 3) Use word pad and put in the below content and save it as itworks.htm > (text type) in c:\inetpub\wwwroot > <html><body><h1>It works!</h1></body></html> > then use your web browser and go to http://localhost/itworks.htm A: That works okay !! > 4) Did you check to see if there are any errors in the System and > Application event logs? A: I found C:Windows\EventSystem.log (modified 30/09/2007) And C:Windows\WindowsUpdate.log with (modified 17/10/2009); I will check this one ... Thanks a lot, Tommy !
From: Tommy Pham on 17 Oct 2009 08:03
From: "cr.vegelin(a)gmail.com" <cr.vegelin(a)gmail.com> To: Tommy Pham <tommyhp2(a)yahoo.com>; general php <php-general(a)lists.php.net> Sent: Sat, October 17, 2009 4:49:53 AM Subject: Re: [PHP] all local sites stopped working ... ----- Original Message ----- From: "Tommy Pham" <tommyhp2(a)yahoo.com> To: "general php" <php-general(a)lists.php.net> Sent: Saturday, October 17, 2009 1:29 PM Subject: Re: [PHP] all local sites stopped working ... > ----- Original Message ---- >> From: "cr.vegelin(a)gmail.com" <cr.vegelin(a)gmail.com> >> To: Tommy Pham <tommyhp2(a)yahoo.com>; general php <php-general(a)lists.php.net> >> Sent: Sat, October 17, 2009 4:19:17 AM >> Subject: Re: [PHP] all local sites stopped working ... >> >> ----- Original Message ----- From: "Tommy Pham" >> To: "general php" >> Sent: Saturday, October 17, 2009 1:02 PM >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> > ----- Original Message ---- >> >> From: "cr.vegelin(a)gmail.com" >> >> To: Tommy Pham ; general php >> >> Sent: Sat, October 17, 2009 3:57:48 AM >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> ----- Original Message ----- From: "Tommy Pham" >> >> To: "general php" >> >> Sent: Saturday, October 17, 2009 12:21 PM >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> >> >> > ----- Original Message ---- >> >> >> From: "cr.vegelin(a)gmail.com" >> >> >> To: John Black >> >> >> Cc: php-general(a)lists.php.net >> >> >> Sent: Sat, October 17, 2009 3:17:22 AM >> >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> >> >> ----- Original Message ----- From: "John Black" >> >> >> To: >> >> >> Cc: >> >> >> Sent: Saturday, October 17, 2009 11:53 AM >> >> >> Subject: Re: [PHP] all local sites stopped working ... >> >> >> >> >> >> >> >> >> > cr.vegelin(a)gmail.com wrote: >> >> >> >> In php.ini I defined: error_log = >> >> >> C:\Inetpub\wwwroot\PHPError.log >> >> >> >> then restarted the server with iisreset.exe >> >> >> >> then started with IE: http://127.0.0.1/.../phpinfo.php >> >> >> >> and after 10 minutes still "Connecting / Waiting for >> >> >> .../phpinfo.php" >> >> >> >> and still no C:\Inetpub\wwwroot\PHPError.log created ... >> >> >> >> Other suggestions ? >> >> >> >> TIA, Cor >> >> >> > >> >> >> > So it is not just .php files which will not work? If you have >> >> >> > > >> trouble > >> >> with >> >> >> .html files as well then it almost sounds like a firewall issue >> >> since >> >> your >> >> >> connection "hangs" until timeout. >> >> >> > >> >> >> > Try this to see if the webserver is accepting a connection: >> >> >> > telnet 127.0.0.1 80 >> >> >> > Then type the two lines below, ending each one with the enter key >> >> > >> > >> (new > >> >> line) >> >> >> > HEAD / HTTP/1.1 >> >> >> > Host: 127.0.0.1 >> >> >> > (hit enter once more) >> >> >> > >> >> >> > And you should get an answer from your server, mine looks like >> >> > this: >> >> >> > HTTP/1.1 200 OK >> >> >> > Date: Sat, 17 Oct 2009 09:49:16 GMT >> >> >> > Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 >> >> > > >> >> SVN/1.6.5 >> >> >> PHP/5.3.0 with Suhosin-Patch >> >> >> > Content-Type: text/html;charset=ISO-8859-1 >> >> >> > Connection closed by foreign host. >> >> >> > >> >> >> > >> >> >> > Does this work? >> >> >> >> >> >> John, >> >> >> Opening a *.HTM file from Windows Explorer goes well. >> >> > >> >> > It's not the same thing as using your web browser and try to view >> > the > >> *.HTM >> >> file(s) through IIS. Notice the protocol difference file:// vs >> http://. >> >> > >> >> >> So the webserver is accepting a connection ... >> >> >> Nevertheless, where should I enter: telnet 127.0.0.1 80 ? >> >> >> From the OS prompt C:\ ? >> >> > >> >> > In a command prompt. Directory path doesn't matter. >> >> > >> >> From the C:\ prompt, I did: >> >> telnet 127.0.0.1 80 [Enter] >> >> HEAD / HTTP/1.1 [Enter] >> >> Host: 127.0.0.1 [Enter] >> >> [Enter] >> >> but all I get is a black window ... >> > >> > Looks like John was right about the firewall. What service pack did > you have >> before your recent windows update? You'll need to disable the firewall in >> services and try the telnet again. >> > >> >> Tommy, >> I did and do have Windows XP SP3. My firewall was turned off. >> I turned it On, but http://127.0.0.1/.../phpinfo.php is not working. >> I turned it Off, and http://127.0.0.1/.../phpinfo.php is not working >> and telnet commands don't show anything ... >> Any other idea ? >> TIA, Cor > > 1) Did you run that command for granting permission of NETWORK SERVICE for the c:\tmp? and restart IIS? A: yes, I did restart IIS after every change in php.ini > 2) run 'netstat -ano' without the single quote in the command prompt and show me what you see. Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1808 TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 848 TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 1808 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1950 0.0.0.0:0 LISTENING 1808 TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 1544 TCP 127.0.0.1:80 127.0.0.1:1952 CLOSE_WAIT 1808 TCP 127.0.0.1:80 127.0.0.1:1954 CLOSE_WAIT 1808 TCP 127.0.0.1:1025 0.0.0.0:0 LISTENING 1352 TCP 127.0.0.1:1029 0.0.0.0:0 LISTENING 2940 TCP 127.0.0.1:1056 0.0.0.0:0 LISTENING 3960 TCP 127.0.0.1:1288 127.0.0.1:1025 CLOSE_WAIT 908 TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING 1116 TCP 192.168.1.33:139 0.0.0.0:0 LISTENING 4 UDP 0.0.0.0:445 *:* 4 UDP 0.0.0.0:500 *:* 612 UDP 0.0.0.0:1026 *:* 1116 UDP 0.0.0.0:3456 *:* 1808 UDP 0.0.0.0:4500 *:* 612 UDP 127.0.0.1:123 *:* 916 UDP 127.0.0.1:1900 *:* 1088 UDP 127.0.0.1:1909 *:* 524 UDP 192.168.1.33:123 *:* 916 UDP 192.168.1.33:137 *:* 4 UDP 192.168.1.33:138 *:* 4 UDP 192.168.1.33:1900 *:* 1088 UDP 192.168.1.33:5353 *:* 1116 > 3) Use word pad and put in the below content and save it as itworks.htm (text type) in c:\inetpub\wwwroot > <html><body><h1>It works!</h1></body></html> > then use your web browser and go to http://localhost/itworks.htm A: That works okay !! > 4) Did you check to see if there are any errors in the System and Application event logs? A: I found C:Windows\EventSystem.log (modified 30/09/2007) And C:Windows\WindowsUpdate.log with (modified 17/10/2009); I will check this one ... Thanks a lot, Tommy ! T>> You'll need to view the logs in the Event Viewer. |