View previous topic :: View next topic |
Author |
Message |
omaronly -
Joined: 27 Nov 2004 Posts: 20
|
Posted: Tue Jan 22, 2008 7:12 pm Post subject: No PHP Error Log with FastCGI |
|
|
While I'm on the road in Morocco, I'm using Abyss and Sqlite as my local test server on WinXP in place of the relatively heavy Apache/MySQL. Love its very low memory footprint. However...
I cannot for the life of me get php to output errors or even produce the error log. I have done this:
* Downloaded the special PHP package
* Installed it and its working
* Configured abyss exactly per the official instructions
php.ini has all the proper settings to produce an error log; even googling for the possibility that a fastcgi process won't write to the error log turned up nothing. I've done this numerous times on Unix systems successfully.
So, how can I get php errors to show up in the fastcgi.log or get this php version to write its errors to a php.log?[/list] |
|
Back to top |
|
 |
rrinc -
Joined: 24 Feb 2006 Posts: 725 Location: Arkansas, USA
|
Posted: Wed Jan 23, 2008 12:04 am Post subject: |
|
|
Are you absolutely sure the page is being parsed by the PHP interpreter? Is there any output? If there's output, but no errors then try adding error_reporting(E_ALL); at the start of your script. _________________ -Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados. |
|
Back to top |
|
 |
omaronly -
Joined: 27 Nov 2004 Posts: 20
|
Posted: Wed Jan 23, 2008 6:06 pm Post subject: |
|
|
Its absolutely processing the Php code, just not outputting anything to the browser. The Fastcgi log shows is going as planned, but I would figure if there were errors they would be here. E_ALL & E_STRICT are already set in php.ini; no reason to reset them in the application's code. So, my question is does the FastCgi process redirect all errors to fastcgi.log or does it respect the error_log directive in php.ini? Aprelium? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Jan 27, 2008 5:46 pm Post subject: |
|
|
omaronly wrote: | Its absolutely processing the Php code, just not outputting anything to the browser. The Fastcgi log shows is going as planned, but I would figure if there were errors they would be here. E_ALL & E_STRICT are already set in php.ini; no reason to reset them in the application's code. So, my question is does the FastCgi process redirect all errors to fastcgi.log or does it respect the error_log directive in php.ini? Aprelium? |
Php.ini contains several error reporting parameters. There are some that will redirect errors to the HTML page, and others that can redirect the errors to the fastcgi.log or to another file. Abyss Web Server cannot force the output of errors if your PHP is configured to not show them (which seems to be the case with your setup). Note that with FastCGI/PHP, when you update php.ini, a server restart is required to force a reload of PHP processes with the new php.ini parameters taken into account. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|