# Apache2 w/Percona 5.6 Installation Ubuntu Willy

URL: https://sohaib.com/blog/apache2-wpercona-5-6-installation-ubuntu-willy
Author: Sohaib Khan
Published: Jan 23, 2016
Updated: Sep 8, 2026
Category: Cloud & Infrastructure

> Its been a long time since my last update, I was busy with family and work. Today I will show how we install Apache2 using Ubuntu latest edition Willy as of Jan-23-2016 apt-get update apt-get install apache2…

Its been a long time since my last update, I was busy with family and work. Today I will show how we install Apache2 using Ubuntu latest edition Willy as of Jan-23-2016

```bash
apt-get update
apt-get install apache2 apache2-doc apache2-utils libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec-pristine php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached php5-apcu libapache2-mod-fastcgi php5-fpm -y
```

```bash
a2enmod actions fastcgi alias
```

```bash
service apache2 restart
```

```bash
a2enmod suexec rewrite ssl actions include cgi
```

```bash
a2enmod dav_fs dav auth_digest
```

```bash
php5enmod mcrypt
```

**Finally we restart Apache2  for the last time**

```bash
service apache2 restart
```

**Now will install Percona Database Server Instead of MySQL Server**

Fetch the repository packages from Percona web:

```bash
wget https://repo.percona.com/apt/percona-release_0.1-3.$(lsb_release -sc)_all.deb<span id="mce_marker" data-mce-type="bookmark"></span>
```

Install the downloaded package with **dpkg**. To do that, run the following commands as root or with **sudo**:

Once the following installed you can check Percona repositories should be added. /etc/apt/sources.list.d/percona-release.list file.

```bash
dpkg -i percona-release_0.1-3.$(lsb_release -sc)_all.deb
<span id="mce_marker" data-mce-type="bookmark"></span>
```

```bash
apt-get update
```

```bash
apt-get install percona-server-server-5.6 percona-server-client-5.6 -y<span id="mce_marker" data-mce-type="bookmark"></span>
```

You are Done.

Now you've a great rock solid Apache2 Server

You also copy and paste the complete script :-  

```bash
apt-get update

apt-get install apache2 apache2-doc apache2-utils libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec-pristine php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached php5-apcu libapache2-mod-fastcgi php5-fpm -y

a2enmod actions fastcgi alias
service apache2 restart
a2enmod suexec rewrite ssl actions include cgi
a2enmod dav_fs dav auth_digest
php5enmod mcrypt
service apache2 restart

wget https://repo.percona.com/apt/percona-release_0.1-3.$(lsb_release -sc)_all.deb
dpkg -i percona-release_0.1-3.$(lsb_release -sc)_all.deb

apt-get install percona-server-server-5.6 percona-server-client-5.6 -y
```

Speed the web with [Google Page speed](http://52.201.111.196/2016/01/23/mod_pagespeed-with-apache-on-ubuntu/) - Click here
