Page 1 of 1

Help with PHP on Ubuntu 10.10

Posted: Wed Jan 19, 2011 2:08 pm
by de1337ed
Hey guys, I am having a little issue with the LAMP server i installed on Ubuntu. Everything successfully installed, and I can view my php and stuff, but I don't know how to make the server show me any compiling/debugging errors like how it did on my WAMP server. Can someone give me the steps to make LAMP show my php errors? Thank you.
:banghead: :banghead:

Re: Help with PHP on Ubuntu 10.10

Posted: Wed Jan 19, 2011 2:20 pm
by AbraCadaver
You can do it in code with:

Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', '1');
Or if you always want them displayed, edit /etc/php5/apache2/php.ini and make sure:

[text]display_errors = On
error_reporting = E_ALL[/text]

Re: Help with PHP on Ubuntu 10.10

Posted: Wed Jan 19, 2011 2:25 pm
by Jonah Bron
Enable error reporting in your php.ini file. My php.ini file is in /etc/php5/apache2. The comments in the file will instruct you on how.