About me

Paolo Iannelli Picture

Paolo Iannelli

Big Daddy at Mega Labs

Location
Amsterdam Area, Netherlands
Industry
Information Technology and Services
Interests
C, Python, Big Data, Scalability, High Availability, Performance
Description
Expert Software Engineer with more than 12 years of experience.
Strong in critical thinking, problem solving and high performance architectures.
Paolo Iannelli Labs Rss

How To Setup Magento + Nginx + FCGI + Ubuntu

Posted on : 10-04-2011 | By : Paolo Iannelli | In : E-Commerce, Magento, System Administration

Tags: , , , , , , , , , , ,

3

The tutorial I will write today is about setting up Magento (version 1.4+) on a Ubuntu box, using nginx and php5-cgi.

Preparing the system

I assume that you already installed MySQL server and setup a database / user for the Magento instance you will run.

Lets begin installing all the packages needed for our purposes :

Once you have installed them, you need to have a startup script to launch your fastcgi processes during system boot. To do so, you may create the file /etc/init.d/fastcgi with the following content :

In /usr/bin/php-fastcgi you will have the following

Now you set both files executable and place the first one in startup scripts :

In the next page we will download Magento and setup nginx.