Ubuntu 9.04

Howto Install LAMP server in Jaunty

yey
LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server,MySQL as the relational database management system and PHP as the object-oriented scripting language.
We have already discussed howto install LAMP server using the base installation.If you want to install separately use this procedure.

Apache2 installation

Install apache2 using the following command

sudo apt-get install apache2

HOWTO : Performance tuning of LAMP and Ubuntu 9.04 Server

yey
Step 1 :

sudo a2enmod deflate

sudo nano /etc/apache2/conf.d/deflate.conf


Add the following lines at the file.

<IfModule mod_deflate.c>
   DeflateCompressionLevel 6
   AddOutputFilterByType DEFLATE text/plain
   AddOutputFilterByType DEFLATE text/html
   AddOutputFilterByType DEFLATE text/xml
   AddOutputFilterByType DEFLATE text/css
   AddOutputFilterByType DEFLATE application/xhtml+xml
   AddOutputFilterByType DEFLATE application/xml

HOWTO : Security enhanced your Ubuntu 9.04 LAMP server with AppArmor

yey

Step 1 :

Check if AppArmor is enabled or not. And make sure MySQL profile is enabled too.

sudo apparmor_status

Step 2 :

Create a profile of Apache2.

sudo aa-genprof apache2

sudo nano /etc/apparmor.d/usr.sbin.apache2

Add the following lines within ^DEFAULT_URI bracket.