Installing the cPanel panel in CentOS 6.5

Source: Internet
Author: User
Tags php and ssh centos cpanel hosting install perl iptables web hosting

CPanel is one of the most prestigious commercial software in the web hosting industry. It is based on Linux and BSD systems and is developed based on PHP and its nature is closed source software; provides powerful and complete host management functions, such: webmail and a variety of e-mail protocols, Web-Based FTP management, SSH connections, database management systems, DNS management, and other remote Web-based host management software features.
CPanel's development company was founded in 1997 in Houston cPanel Inc ., cPanel is primarily a customer-level control system, while the attached control panel for system administrators and resellers is WHM (Web Hosting Manager ). By default, both control panels are in SSL encrypted connection mode. The default port of the former is 2082/2083, while that of the latter is 2086/2087.
CPanel provides two major versions: the standalone host version and the system optimized version for VPS. It runs in a LAMP environment. Its strength and ease of use are very popular, but its disadvantage is that it runs slowly (※this is related to the SSL encryption mode, the configuration environment of the host, and the network connection speed ). the price is higher than that of other host management software. The built-in functions are enough to control the entire system through web GUI. Users can use its RVSiteBuilder to quickly create webpages using a large number of templates. CPanel's stability and security are quite reliable. The Cloudflare/Incapsula module allows users to integrate CDN services in the panel, and allows users to perform remote tasks through APIs and perfectly integrate with WHMCS automated electronic sales management software.
CPanel provides the RVSkin function and allows host managers to customize the interface of the control panel. Its main page is HTML static webpage and XML display, which is also a vulnerability in XSS attacks and intrusion.
 
Here I use the cpanel installed on the linode host. The environment is centos6.5, and centos6is officially recommended.
 
Preparations before installation

First, log on to the server, and then check the master IP address (the authorized IP address) of the server)

Curl-L http://cpanel.net/showip.cgi

Check whether the host name meets the FQDN format

Hostname myhost. localdomain. ltd

In fact, we can use hostbname to temporarily modify the host name:

1. FTP/SFTP modification

Modify the hostname in the/etc/sysconfig/network file.
Then modify the/etc/hosts file to make the public IP hosts.

NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = MyServer123 (here is the host name you want to modify)

Temporarily modify host name

2. Modify in SSH

Enter: hostname your host name. Remember that there is a space here!
For example:
Hostname www.111cn.net


Disable firewall

Chkconfig iptables off

Service iptables stop

Disable SELinux

Vi/etc/selinux/config

Change to SELINUX = disabled


Linux-centos-selinux-disabled
 
Install the gcc environment

Yum-y install gcc
Yum-y install gcc-c ++
Yum-y install make

Install the Perl environment

Yum-y install perl
Yum-y install cpan

Uninstall conflicting software

Yum-y groupremove "FTP Server" "GNOME Desktop Environment" "KDE (K Desktop Environment)" "Mail Server" "Mono" "Web Server" "X Window System"
 
Install cPanel

Here we 'd better use screen for installation, because the installation takes a long time.

Screen-S cpanel

Run the following command.

Cd/home
Http://httpupdate.cpanel.net/latest wget-N
Sh latest
/Usr/local/cpanel/cpkeyclt
The following figure shows the waiting time. The waiting time is about 30 minutes. It depends on your network environment and other factors.


Cpanel one-click package

Cpanel one-click installation package. Only IPs that have been officially verified are included.
 
 
The next article will introduce some basic settings after the cpanel panel is installed.

Related Article

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.