Tag  |  hosting

Photo by xmodulo

How I Migrated From Apache to NGINX

Steps to Migrating from Apache2 to NGINX

First, we will install NGINX and PHP-FPM:

sudo apt-get install nginx php5-fpm

Next, we will need to update the PHP-FPM config at /etc/php5/fpm/pool.d/www.conf

sudo nano /etc/php5/fpm/pool.d/www.conf

My server has 4 cores, so this is what my www.conf file looks like:

user              www-data;
worker_processes  4;
worker_cpu_affinity 0001 0010 0100 1000;
error_log         /var/log/nginx/error.log;
pid               /var/run/nginx.pid;

events {
    worker_connections  2048;
}

http…

Photo by Garrett Heath

Creating a Dedicated Memcached Server on Rackspace Cloud Servers

This tutorial will step us through the creation of a Memcached server on Rackspace cloud servers.  The ultimate goal will be to have a dedicated Memcached server which will be accessed by multiple web servers that are load balanced in a Rackspace cloud hosting environment.

There are a few reasons to set up a dedicated Memcached server:

  • Performance: We will custom-prepare…

Photo by jimw

Creating a MySQL Database Server on Rackspace Cloud Servers

This tutorial will step us through the creation of a MySQL cloud database server on Rackspace cloud servers, we will not be using the "Rackspace Cloud Databases".  The ultimate goal will be to have a dedicated database server which will be accessed by multiple web servers that are load balanced in a Rackspace cloud hosting environment.

There are a few reasons…