Here is the short tutorial about installing lcmp(linux cherokee mysql php pearl) stack.herokee is a high-performance web server. It is very fast, flexible and easy to configure.
1.First install repository for the packages.
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm
2.Install Cherokee web server and RRDtool (allows for graphs on the vhosts)
# yum install cherokee
# yum install rrdtool
3.Install MySQL server
# yum install mysql mysql-server
4.Install PHP, Perl and Python.
# yum install php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-pecl-apc php53u-pecl-memcache php53u-snmp
5.Now for the service to automatically on boot do follow
# chkconfig cherokee on
# chkconfig mysqld on
6.Start mysql and cherokee
# service mysqld start
# service cherokee start
7.Now test php setting
# vi /var/www/cherokee/phpinfo.php
copy and paste following:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>
8.Start cherokee admin panel
# cherokee-admin -b
9.Now login to http://localhost:9090/.Enter username and password from command prompt.
10.Click vservers.on directory indexes put index.php
11.Click Behavior tab>Default>New>Languages.select php.Click add>create.
12.Now click to save the setting and restart cherokee server.
13.Now go to http://localhost/phpinfo.php you should see the php info page.
No comments:
Post a Comment