mod_lsapi for apache – install and use it without running CloudLinux kernel.

mod_lsapi for apache – install and use it without running CloudLinux kernel.In a previous post i was explaining how you can install mod_lsapi apache module from Cloudlinux without actually having a Cloudlinux kernel or license. This tutorial is strictly for CentOS 6.x x86_64. This post comes as an update since the guys from Cloudlinux updated their module and the necessary libraries, so at this point, you will not be able to use the fresh compiled module because of module and libraries version mismatch. The latest version of the module is 0.3-28

I will cut the description and other info that you can find in my previous post and jump directly to the install process.

mod_lsapi – step by step installation guide

Step 1) download the source code:

Step 2) download the .rpm files needed for dependencies in order to be able to compile mod_lsapi from source

Step 3) check if you have installed cmake (needed to compile); if not please install cmake using:

Step 4) extract files from archive, compile, install plugin

Step 5) Install and configure PHP Support for LiteSpeed

Step 6) Create a temporary directory for lsphp

Step 7) Be sure that your apache server is running as apache/apache (user/group). You can check that by looking in /etc/httpd/conf/httpd.conf.

Step 8) If your website files are in /var/www/html let’s say and they have different owner/group than apache:apache set them accordingly

Step 9) Disable mod_php or other settings for php (I was using mod_php so I had to disable the module loading into apache)

Step 10) Modify some settings for the lsapi module (/etc/httpd/conf.d/mod_lsapi.conf)

Save the file when you’re done.

Step 11) Restart apache
# /etc/init.d/httpd restart

In order to check if you have a running php config, check your php information in a web browser.

Point your web browser to http://your_server_ip_or_hostname/info.php
You should see something like this: Server API LiteSpeed V6.8





0%
0%
Awesome
  • User Ratings (4 Votes)
    9.9
Share.

About Author

I am a linux passionate and currently working as a Linux Senior System Administrator. I also am a freelancer and help people to complete different jobs. You can hire me on Freelancer.com