Update: NginxCP has been abandoned. Instead take a look at CPnginx,
working together seapanel Feather Centos And red hat I’ve read good things over the years cloudlinux, However, I never played with it and decided that this week I will take a look at it. nginxcp cPanel is a very common solution for administrators looking to get the most throughput from web apps running on based web servers. This is achieved by reducing the demand on Apache by allowing Nginx to take care of static file service. This is a quick guide to install NginxCP on CloudLinux. Please note that NginxCP does not officially support CloudLinux, but due to the similar nature of Cloudlinux to CentOS – except for a few RPMs – it works very well in most cases.
I already have you have Cloudlinux and cPanel installed, please go to the Install subheading below. In my case, I started CentOS 6.5 and followed the instructions Here To convert to CloudLinux. Next, was cPanel install which you can follow the 3 commands listed Here, After which, I imported a cPanel backup from a CentOS (w/ cPanel) server that powers about 40 websites, just to make sure I can properly test everything works. See also: Nginx Tuning Tips: TLS/SSL HTTPS – Improved TTFB/Latency.
Installing NginxCP on cPanel with CloudLinux
With Cloudlinux and cPanel already installed, you can now install NginxCP using the following command:
mkdir /home/nginx cd /home/nginx wget tar xf nginxadmin.tar cd publicnginx ./nginxinstaller install
complete! Simply restart Apache then test your websites (restarting Apache will also restart Nginx):
service httpd restart
In case it helps, here’s a copy of the commands:
yum update yum install wget wget sh cldeploy -k <your cloudlinux key here> reboot vi /etc/selinux/config chkconfig iptables off service iptables stop yum update yum install perl cd /home wget -N sh latest mkdir /home/nginx cd /home/nginx/ wget tar xf nginxadmin.tar cd publicnginx ./nginxinstaller install service httpd restart
Disclaimer: Do not attempt this installation on a production server. Use the above information at your own risk! After testing on the development server, do a full backup of the live server before attempting. The above NginxCP setup worked with a vanilla install of cPanel and Cloudlinux. There is no CageFS, CSF protection tools and/or other useful (somewhat useless) bloat that can break your installation. If you encounter errors, review any third party features/add-ons. Feel free to post below. enjoy!
Leave a Comment