Install PHP5

Unless you’re planning on serving static content you’re going to want to install PHP.

Note: I honestly think about just converting my dynamic sites where the content doesn’t change often and just convert them to static pages for sheer performance on the server.

Anyways to install PHP5 on your Debian/Ubuntu server run:

apt-get install php5 php5-fpm php5-mysql

Edit /etc/php5/fpm/php.ini

Uncomment and change cgi.fix_pathinfo=1 to 0.

service php5-fpm restart

If you want to test your php install

Create a testfile that triggers the phpinfo() function

If you did not change the default location of where the default nginx webroot is you’ll want to edit


In that file add these three lines


Go check the file in a web browser at http://YourDomainOrIPaddress/somefilename.php

You should see a nice info page.

That’s it! You now have a secured, fully functional high performance web server!! 😀

<– Back to Step 6