Installing LCMP stack on CentOS 5.5

LCMP Stack LCMP is an acronym for a stack of free, open source software from the first letters of Linux (operating system), Cherokee HTTP Server, MySQL and Perl/PHP/Python. These are the principal components to build a viable general purpose web server.

LCMP – Linux.Cherokee.MySQL.PHP/Perl/Python

In this tutorial we will be installing the following open source software components to build the LCMP stack. CentOS 5.5 (operating system), Cherokee 1.0.6 (web server), MySQL 5.0.77 (database server), PHP 5.3.3, Perl 5.8.8, Python 2.4.3

Before we start just some general house keeping. The base CentOS 5.5 server hostname and IP address in this tutorial:

* (IP

The assumption, for this CentOS 5.5 LCMP tutorial, is that you are running as root and have a medium understanding of the software required.

Download and install the relevant YUM install repositories

Install Cherokee web server and RRDtool (allows for graphs on the vhosts)

Install MySQL server

Finally install PHP, Perl and Python.

Note: If you upgrading make sure you remove your previous version of PHP

Make sure everything that needs to be started at boot is on

Create a PHP info page to view your newly install LCMP Stack

Copy the apc.php file (if you’re using APC) to the same directory.

Start the required services

Lastly we’ll configure Cherokee’s default vhost to use PHP (video below)

Once that’s done, visit http://your.server.address/apc.php and http://your.server.address/phpinfo.php

  • Vasanth

    Really useful………………..

  • Isaac

    Compared to all the gurus out there I’m a noob when it comes to Linux, I learned on Ubuntu Server, and currently trying to setup a CentOS web server, I’m skipping Apache and going to try Cherokee cause from what I read it is alot faster, and easier to deal with, In fact I’m on a lap-top with the screen behind it on the CentOS install progress ( its about half way done now ). My main problem is once the server is setup I cant get domains to resolve right, and I figure its a error in my bind config, ips, and hostname.

    Has anybody noticed that its hard to find a tutorial on how to setup websites WITHOUT a control panel like, CPanel, Webmin, or ISPConfig?

    Is it really that hard? If anybody does have a link to a tutorial on how to setup domains just from SSH please post it.

    I like learning the back end of things, so I know what’s going on.

  • Anonymous

    Isaac it’s not as hard as you think. All you do is create a virtual server in Cherokee that will house your website. Then all you do is point your domain to your public IP address but make sure that your firewall (if you have one) allows port 80 traffic

  • Pingback: Installing Cacti on CentOS 5.5 tutorial | How 2 CentOS :: CentOS tutorials and Howtos()