Re: all local sites stopped working ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----
> From: "cr.vegelin@xxxxxxxxx" <cr.vegelin@xxxxxxxxx>
> To: John Black <spam@xxxxxxxxxxxxxxxxxxxxxxxx>
> Cc: Tommy Pham <tommyhp2@xxxxxxxxx>; php-general@xxxxxxxxxxxxx
> Sent: Sat, October 17, 2009 2:44:32 AM
> Subject: Re:  all local sites stopped working ...
> 
> ----- Original Message ----- From: "John Black" 
> To: 
> Cc: "Tommy Pham" ; 
> Sent: Saturday, October 17, 2009 11:08 AM
> Subject: Re:  all local sites stopped working ...
> 
> 
> >> cr.vegelin@xxxxxxxxx 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.

> Other suggestions ?
> TIA, Cor
> 
> 
> -- PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux