From: John Black on
> 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.
--
John
Gerechtigkeit entspringt dem Neid; denn ihr oberster Grundsatz ist:
Allen das Gleiche.
[Walther Rathenau]

From: Tommy Pham on
---- Original Message ----
> From: "cr.vegelin(a)gmail.com" <cr.vegelin(a)gmail.com>
> To: Tommy Pham <tommyhp2(a)yahoo.com>; php-general(a)lists.php.net
> Sent: Sat, October 17, 2009 2:00:25 AM
> Subject: Re: [PHP] all local sites stopped working ...
>
> ----- Original Message ----- From: "Tommy Pham"
> To:
> Sent: Saturday, October 17, 2009 10:19 AM
> Subject: Re: [PHP] all local sites stopped working ...
>
>
> ----- Original Message ----
> > From: "cr.vegelin(a)gmail.com"
> > To: Hanjie Xu
> > Cc: php-general(a)lists.php.net
> > Sent: Sat, October 17, 2009 12:34:49 AM
> > Subject: Re: [PHP] all local sites stopped working ...
> >
> > Yes, my web server is started.
> > I also did: Start - Run - IISRESET
> > and it says: Internet services successfully stopped, etc.
> > So I think that's not the problem.
> >
> > ----- Original Message ----- From: Hanjie Xu
> > To: cr.vegelin(a)gmail.com
> > Cc: php-general(a)lists.php.net
> > Sent: Saturday, October 17, 2009 9:29 AM
> > Subject: Re: [PHP] all local sites stopped working ...
> >
> >
> > Is your Web Server started?
> >
> >
> > 2009/10/17
> >
> > Hi All,
> >
> > All my local PHP sites (http://127.0.0.1/... and http://localhost/...)
> > worked until today.
> > Now all these local sites don't work anymore.
> > The only difference since yesterday is running 16 Windows Updates.
> >
> > I checked C:\WINDOWS\system32\LogFiles\W3SVC1\... but no errors.
> > Can I set a php.ini setting to track down the problem ?
> > Or where else to look to solve this problem ?
> >
> > Configuration: Windows XP SP3, PHP 5.2.0, IIS 5.1, MySQL 5.0.15 NT
> >
> > Any help highly appreciated !!!
> >
> > TIA, Cor
> > -- 许汉杰
>
> * Did you restart your system after windows update?
> A: yes I did. After the restart this morning, the problem occurs.
>
> * What's your ini settings regarding logging and start-up errors?
> A: my php.ini has the following settings (not changed for a year):
> log_errors = On
> ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
> ;error_log = syslog
> ; fastcgi.log = 0
> define_syslog_variables = Off
> display_startup_errors = On
> session.auto_start = 0
>
> * Did you check PHP error log?
> A: The only log files I can find are:
> C:\WINDOWS\system32\LogFiles\W3SVC1\ex091017.log with:
> #Software: Microsoft Internet Information Services 5.1
> #Version: 1.0
> #Date: 2009-10-17 08:20:06
> #Fields: time c-ip cs-method cs-uri-stem sc-status
> 08:20:06 127.0.0.1 GET /.../favicon.ico 404
> 08:20:06 127.0.0.1 GET /.../favicon.ico 404
> C:\WINDOWS\Temp\WGAErrLog.txt (dated 17/10/2009) with:
> a repeated string of D446F964-596-80004005
> Where / how to look for a PHP specific log file ?

See John Black's reply. Forgot to ask you if there are any errors in System & Application event logs.

>
> * Is PHP running as CGI/FCGI or ISAPI?
> A: Don't know. Where can I see which mode it is running ?

Did you setup PHP? You don't remember how you configured it? Is the PHP you're using an official distribution from PHP.net? Or is it from someone else build it?

>
> * Have you tried a simple phpinfo(); to see if PHP is running as configured?
> A: Yes I did, but http://127.0.0.1/.../phpinfo.php is not working because of the
> same problem.
>
> Thanks for your time / effort.
>
>
>
> -- PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

From: cr.vegelin on
----- Original Message -----
From: "John Black" <spam(a)network-technologies.org>
To: <cr.vegelin(a)gmail.com>
Cc: "Tommy Pham" <tommyhp2(a)yahoo.com>; <php-general(a)lists.php.net>
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 ...

Other suggestions ?
TIA, Cor

From: cr.vegelin on

----- Original Message -----
From: "Tommy Pham" <tommyhp2(a)yahoo.com>
To: <php-general(a)lists.php.net>
Sent: Saturday, October 17, 2009 11:23 AM
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>; php-general(a)lists.php.net
> Sent: Sat, October 17, 2009 2:00:25 AM
> Subject: Re: [PHP] all local sites stopped working ...
>
> ----- Original Message ----- From: "Tommy Pham"
> To:
> Sent: Saturday, October 17, 2009 10:19 AM
> Subject: Re: [PHP] all local sites stopped working ...
>
>
> ----- Original Message ----
> > From: "cr.vegelin(a)gmail.com"
> > To: Hanjie Xu
> > Cc: php-general(a)lists.php.net
> > Sent: Sat, October 17, 2009 12:34:49 AM
> > Subject: Re: [PHP] all local sites stopped working ...
> >
> > Yes, my web server is started.
> > I also did: Start - Run - IISRESET
> > and it says: Internet services successfully stopped, etc.
> > So I think that's not the problem.
> >
> > ----- Original Message ----- From: Hanjie Xu
> > To: cr.vegelin(a)gmail.com
> > Cc: php-general(a)lists.php.net
> > Sent: Saturday, October 17, 2009 9:29 AM
> > Subject: Re: [PHP] all local sites stopped working ...
> >
> >
> > Is your Web Server started?
> >
> >
> > 2009/10/17
> >
> > Hi All,
> >
> > All my local PHP sites (http://127.0.0.1/... and
> > http://localhost/...)
> > worked until today.
> > Now all these local sites don't work anymore.
> > The only difference since yesterday is running 16 Windows Updates.
> >
> > I checked C:\WINDOWS\system32\LogFiles\W3SVC1\... but no errors.
> > Can I set a php.ini setting to track down the problem ?
> > Or where else to look to solve this problem ?
> >
> > Configuration: Windows XP SP3, PHP 5.2.0, IIS 5.1, MySQL 5.0.15 NT
> >
> > Any help highly appreciated !!!
> >
> > TIA, Cor
> > -- 许汉杰
>
> * Did you restart your system after windows update?
> A: yes I did. After the restart this morning, the problem occurs.
>
> * What's your ini settings regarding logging and start-up errors?
> A: my php.ini has the following settings (not changed for a year):
> log_errors = On
> ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
> ;error_log = syslog
> ; fastcgi.log = 0
> define_syslog_variables = Off
> display_startup_errors = On
> session.auto_start = 0
>
> * Did you check PHP error log?
> A: The only log files I can find are:
> C:\WINDOWS\system32\LogFiles\W3SVC1\ex091017.log with:
> #Software: Microsoft Internet Information Services 5.1
> #Version: 1.0
> #Date: 2009-10-17 08:20:06
> #Fields: time c-ip cs-method cs-uri-stem sc-status
> 08:20:06 127.0.0.1 GET /.../favicon.ico 404
> 08:20:06 127.0.0.1 GET /.../favicon.ico 404
> C:\WINDOWS\Temp\WGAErrLog.txt (dated 17/10/2009) with:
> a repeated string of D446F964-596-80004005
> Where / how to look for a PHP specific log file ?

See John Black's reply. Forgot to ask you if there are any errors in System
& Application event logs.

>
> * Is PHP running as CGI/FCGI or ISAPI?
> A: Don't know. Where can I see which mode it is running ?

Did you setup PHP? You don't remember how you configured it? Is the PHP
you're using an official distribution from PHP.net? Or is it from someone
else build it?

A: PHP was set up for me a few years ago, using an official distribution
from PHP.
Never had this problem before ...



From: John Black on
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
Je größer die Lüge, desto mehr Menschen folgen ihr.