HOWTO: Wordpress on PHP-FPM and Apache

Diwaker Gupta
Floating Sun
Published in
1 min readJan 20, 2016

This was done on Ubuntu 15.10, though instructions should easily translate to other Debian/Ubuntu derivatives.

First, install the required packages:

$ apt-get install apache2 php-fpm5

Next, setup your virtual host like so in a new file, say `/etc/apache2/sites-available/wordpress.conf`:

Symlink the above under `/etc/apache2/sites-enabled` (or use `a2ensite`) and restart apache for the changes to take effect. Voila!

Note that you shouldn’t have to make any changes to the default php-fpm configuration; the above worked for me out of the box. If you need to make any config changes (e.g. change max upload size for POST body), look under `/etc/php5/fpm` for the relevant files.

--

--

Diwaker Gupta
Floating Sun

Geek, open source enthusiast, software architect, virtualization research