Posts

Showing posts from August 12, 2012
How to Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6 About Lemp LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest. Step One—Install the Required Repositories We will be installing all of the required software with Yum. However, because neither nginx nor php-fpm are available straight from CentOS, we need to download two extra repositories first. sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Step Two—Install MySQL The next step is to begin installing the server software, starting with MySQL and dependancies. sudo yum install mysql mysql-server Once the download is complete, restart MySQL: sudo /etc/init.d/mysqld res