DirectAdmin and LVE
Installing DirectAdmin
To install DirectAdmin on fresh CloudLinux installation, you will need to alter /etc/redhat-release file so that DirectAdmin recognizes what to install. In the future we are hoping that DirectAdmin will detect CloudLinux natively.
# echo "CentOS release 5.5" > /etc/redhat-release
After that follow DirectAdmin instructions http://www.directadmin.com/install.html
Requirements
- LVE installed
- Apache 2.2.x, compiled with custombuild
- mod_suexec should be enabled
Install Apache 2.2.x
Install mod_hostinglimits
# yum install lve-devel cmake # wget http://repo.cloudlinux.com/cloudlinux/sources/mod_hostinglimits.tar.gz # tar -zxf mod_hostinglimits.tar.gz # cd mod_hostinglimits # cmake CMakeLists.txt # make install
Add config file
# wget http://repo.cloudlinux.com/cloudlinux/confs/modhostinglimits.conf # cp modhostinglimits.conf /etc/httpd/conf/extra # echo "#For LVE settings" >> /etc/httpd/conf/extra/httpd-includes.conf # echo "Include conf/extra/modhostinglimits.conf" >> /etc/httpd/conf/extra/httpd-includes.conf
Restart apache
# service httpd restart
Potential Issues
In some cases the mod_hostinglimits module is not loaded by apache.
Check file /etc/httpd/conf/extra/modhostinglimits.conf for LoadModule statement.
If it is missing, add:
LoadModule hostinglimits_module /usr/local/HTTPD_MODULES-NOTFOUND/mod_hostinglimits.so
(or correct place where module was installed)
Also, if you are running suPHP, you might need to add x-httpd-php5 handler to modhostinglimits.conf
Like this:
AllowedHandlers application/x-httpd-php5 application/x-httpd-php cgi-script php-script php5-script php4-script x-httpd-php5
