Outputting PHP errors

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
chari_sriram
Forum Newbie
Posts: 1
Joined: Sun Nov 16, 2008 9:50 am

Outputting PHP errors

Post 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:
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Outputting PHP errors

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Outputting PHP errors

Post 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...
Post Reply