Page 1 of 1

Outputting PHP errors

Posted: Sun Nov 16, 2008 10:08 am
by chari_sriram
Hello, I am new to PHP. So, any help is much apprecaited. I am trying to install a open source product that runs on PHP, apache and Mysql. I had installed all these individually and they are working fine. PHP talks to mysql just fine. Apache works fine too.

But, while I start to install the open source product, it pretty much dies on the first step. I am wondering how to output the PHP errors I get during the product installation to some file.

I had done the following already, but the log files does not even get created. How do I trouble shoot this further. I need some direction to look up PHP errors and increase the messaging level to get more details from PHP.

Changed php.ini file to have following.

implicit_flush = on
display_startup_errors = on
error_log = "C:/php/error.txt"

Thanks in advance.
:crazy:

Re: Outputting PHP errors

Posted: Sun Nov 16, 2008 10:23 am
by Eran
During development it's best to output the errors to the screen by setting 'display_errors = On'
For the error log, you should have a look at the apache error log as its usually stored there.

Re: Outputting PHP errors

Posted: Sun Nov 16, 2008 11:09 am
by alex.barylski
What open source product are you using? You might want to ask on their message forums as Apache errors or even PHP for that matter are not likely going to be of much use. The installer should tell you whether file permissions, etc are not set correctly or whatever...