Help with PHP on Ubuntu 10.10
Moderator: General Moderators
Help with PHP on Ubuntu 10.10
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.

- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Help with PHP on Ubuntu 10.10
You can do it in code with:
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]
Code: Select all
error_reporting(E_ALL);
ini_set('display_errors', '1');[text]display_errors = On
error_reporting = E_ALL[/text]
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Help with PHP on Ubuntu 10.10
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.