Tag Archives: linux

Setting your PHP error reporting

In your virtual host open an add/edit

php_admin_value display_errors on
php_admin_value error_reporting 6143 # for all errors notice, warnings, etc
php_admin_value error_reporting 6135 #show warnings less strict

Or edit your php.ini (example in ubuntu)

sudo vim /etc/php5/apache2/php.ini

Install Apache2 + PHP5 + MySQL + Eclipse+ PHPEclipse + Mercurial +SVN in Ubuntu 10.04 Lucid Lynx

This is sooo useful when you have a new laptop/PC is a must for every true developer…

# Instalando el servidor Apache version 2
sudo apt-get install apache2

# PHP5
sudo apt-get install php5

# Servidor MySQL
sudo apt-get install mysql-server-5.1

# Módulo de apache para mysql
sudo apt-get install libapache2-mod-auth-mysql php5-mysql

sudo apt-get install phpmyadmin  # opcional

sudo apt-get install mysql-query-browser  # opcional ( MYSQL query browser)

sudo apt-get install vim # an useful editor

sudo apt-get install meld # a freaking easy merge tool

sudo apt-get install openjdk-6-jre # yeah sun-java6-jre is  deprecated now in Lucid at least in the beta

sudo apt-get install mercurial # of course

Download Eclipse Ganymede not Galileo


Note: There are some issues with Eclipse Galileo, when you trying to install  *obligatory* plugins like PHPEclipse, Mercurial or SVN, simply it does not work.

Add this plugins:







At least but no last do a :

hg clone https://chamilo.googlecode.com/hg/ chamilo

To get your last Installation of Chamilo 😉

And for turn an SVN/Mercurial project to a PHP project in order to have the inspect function feature edit your .project file and add this:


Here the short way for install the deb packages:

sudo apt-get install apache2 php5 mysql-server-5.0 libapache2-mod-auth-mysql php5-mysql phpmyadmin  mysql-query-browser vim meld openjdk-6-jre mercurial vim

If you have some issues with the openjdk6-jre installation you may try installing this version.

Eclipse Galileo tip: Turn a X proyect into a PHP proyect

There was a way of turning a SVN proyect into a PHP proyect with the inspect functionality:


There is another way: click right in the proyect icon then chose this:
Configure-> Add PHP support

That’s it!

Ubuntu tips

An online community dedicated to tips, tweaks, hints and hacks for Ubuntu

I just love the logo: