In this post, I'll setup a apache2 with php5 and tomcat6 integrated with apache2. Since Tomcat 5, you don't need a front http server anymore, but since I want to have php5 and tomcat6 on port 80, I need the tomcat6-apache2 integration with modjk since a lot of operation need the root privilege, switch to root : sudo -s Apache2 & PHP5 installation The following command install php5, php5 command line interface (CLI to use php as shell script) and some common php extension. aptitude install php5 php5-cli apache2 php5-xmlrpc php5-mysql php5-gd php5-imagick php-pear php5-mcrypt a2enmod headers #Activation of Mod headers a2enmod deflate #Activation of Mod deflate Setup the timezone : vi /etc/php5/apache2/php.ini [Date] ; Defines the default timezone used by the date functions date.timezone = Europe/Paris Java installation aptitude install sun-java6-jdk vi /etc/profile Append the following line : export JAVA_HOME=/usr/lib/jvm/java-6-sun reload your .profile : (command to type