CentOS Nginx + PHP-FPM (Part 1)

Nginx LogoSo I am currently setting up a new virtual server with ngnix, php-fpm and the usual software like MySQL, as it will need to run wordpress.
This blog will actually be moving over there once complete and tested. For now I will just be documenting the setup.

I am going for Nginx and PHP-FPM because I want something with more performance than the standard apache (LAMP) setup.
Also it uses less resources meaning I don’t need to go for a massive VPS or dedicated server.
I have actually done this on 64mb RAM before, however this one will have 512mb to allow a bit more scalability.

To start off with this will just be getting Nginx installed and ready for configuration.
Before we do anything you should always make sure the system is all up to date.

yum update -y

Next install the repo with nginx in it.

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/$(uname -m)/epel-release-5-3.noarch.rpm

Basically that line should convert into something like this, if it doesn’t work just browse their directory structure using your web browser:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm

Finally time to install nginx

yum install nginx -y

I will go through the setup and configuration soon! keep checking back for part2

Technology enthusiastic with many ongoing online projects one of which is this personal blog PingBin. While also working full time within a data center designing and maintaining the network infrastructure.

Leave a reply:

Your email address will not be published.

Site Footer