We offer two ways to install today:
1, centos6.x series Server Installation NGINXCP
2, cloudlinux6.x series Server Installation NGINXCP
Please read the disclaimer carefully before continuing to read the following articles.
Disclaimer: Please do not apply the method provided in this article to the production server, if you forcibly use and cause damage to the production server, the site is not responsible. Since NGINXCP
Do not formally support the Cloudlinux system, we are here only to provide installation methods, not to do post-maintenance explanation. Before installing, please check if your CPANEL/WHM has cagefs, CSF firewall tools, and other
Nginxcp
Conflicting software that could cause the installation to fail.
1. "centos6.x Series Server installation NGINXCP support"
Installation of the install Nginx CP:
Cd/usr/local/srcwget Http://nginxcp.com/latest/nginxadmin.tar Tar XF nginxadmin.tarcd publicnginx./nginxinstaller Install
Uninstall of the Uninstall Nginx CP:
CD/USR/LOCAL/SRC wget Http://nginxcp.com/latest/nginxadmin.tar Tar xf nginxadmin.tar cd Publicnginx./nginxinstaller Uninstall
2. "cloudlinux6.x Series Server Installation NGINXCP" Install Nginx CP installing Nginx CP on CPanel with Cloudlinux under CPanel already installed Cloudlinux system
With both Cloudlinux and cpanel installed, you can execute the following command line to install the Nginx CP:
Mkdir/home/nginxcd/home/nginxwget Http://nginxcp.com/latest/nginxadmin.tartar XF nginxadmin.tarcd publicnginx./ Nginxinstaller Install
done! Restart the Apache (Apache) service and test your website (restarting Apache will automatically restart Nginx):
Service httpd Restart
The following are some of the commands used by Cloudlinux to install Nginx bloggers, please use them as appropriate
Yum Updateyum install wgetwget Http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploysh cldeploy-k rebootvi/etc/ Selinux/configchkconfig iptables offservice iptables stopyum updateyum Install perlcd/homewget-n/HTTP/ Httpupdate.cpanel.net/latestsh Latestmkdir/home/nginxcd/home/nginx/wget http://nginxcp.com/latest/ Nginxadmin.tartar XF nginxadmin.tarcd publicnginx./nginxinstaller installservice httpd restart
Munin monitoring does not work when you add NGINXCP to the cpanel server A Quick Tip If Munin simply stops monitoring Apache after you install NGINXCP on CP Anel
Edit cpanel.conf File
# nano/etc/munin/plugin-conf.d/cpanel.conf
Add the following code after
[Apache_*]env.url http://127.0.0.1:%d/whm-server-status?autoenv.ports 8081
To this end of this article:)
- This article is from: Linux Tutorial Network
Open Nginx support for CPANEL/WHM server with NGINXCP