# How to setup a Webserver *Nginx w/Percona

URL: https://sohaib.com/blog/how-to-setup-a-webserver-nginx-wpercona
Author: Sohaib Khan
Published: May 18, 2015
Updated: Sep 8, 2026
Category: Cloud & Infrastructure

> Today, I will share how to setup a Nginx Webserver allowing you to create dynamic web applications with Nginx, PHP5 and MySQL, Please make sure that you've a fresh Ubuntu Server with just OpenSSH Server installed.…

Today, I will share how to setup a Nginx Webserver allowing you to create dynamic web applications with Nginx, PHP5 and MySQL, Please make sure that you've a fresh Ubuntu Server with just OpenSSH Server installed. **This tutorial will work on any Ubuntu Flavor.** **Step 1**

```bash
apt-get update -y
```

**Step 2**

```bash
apt-get install memcached php5-cli php5-fpm php5-mysql php5-curl php5-gd php5-imagick php5-mcrypt php5-memcached php5-imap python-software-properties software-properties-common -y
```

That's it - now you have to install [Nginx with Google Page speed by following this tutorial](http://52.201.111.196/how-to-install-nginx-with-google-page-speed/), You can install [Percona DB using this tutorial](http://52.201.111.196/nginx-configuration-for-cs-cart/)
