Help with PHP on Ubuntu 10.10

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
de1337ed
Forum Newbie
Posts: 1
Joined: Wed Jan 19, 2011 2:05 pm

Help with PHP on Ubuntu 10.10

Post 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:
User avatar
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

Post 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]
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.
User avatar
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

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