Open Nginx support for CPANEL/WHM server with NGINXCP

Source: Internet
Author: User
Tags cloudlinux cpanel whm

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.