+4 votes
227 views
Install CPanel and WHM on a VPS Centos

in Web Servers by (552k points)
reopened | 227 views

1 Answer

+5 votes
Best answer

image


We will access our server via ssh from the terminal window. We enter the IP that our Hosting provider provided us.

Once logged by ssh introduce the following codes. We first install some dependencies that may be necessary on any server that has nothing installed

Always before installing on a server it is convenient to update it and clean the cache
root @ server1 [~] # yum clean all
root @ server1 [~] # yum list updates
root @ server1 [~] # yum -y update

After updating it, we restart the server from the terminal
root @ server1 [~] # reboot

We install perl can always be necessary for operations of some program such as nano to edit files and install some other tools
root @ server1 [~] # yum install perl
root @ server1 [~] # yum install wget
root @ server1 [~] # yum install nano

Stop the default Linux firewall in case it is activated on the server
root @ server1 [~] # service iptables save
root @ server1 [~] # service iptables stop
root @ server1 [~] # chkconfig iptables off

Then we access the home
root @ server1 [~] # cd / home

We downloaded the latest available version of Cpanel and then we started installing Cpanel
root @ server1 [~] # wget -N http://httpupdate.cPanel.net/latest
root @ server1 [~] # sh latest

If we are going to do a cluster dns or we will have several servers, it will not be necessary.
root @ server1 [~] # wget -N http: //httpupdate.cp.../latest-dnsonly
root @ server1 [~] # sh latest-dnsonly

Then the process of installing all the files, system checks and auto configurations will take approximately 30 to 50 minutes depending on the server's capabilities.

Then we must perform a test or Trial activation
root @ server1 [~] # / usr / local / cpanel / cpkeyclt

We must also go to the Cpanel website http://cpanel.net/ to request that the IP of our server be granted a free trial license for 15 days, until the definitive one is purchased.

image


Then at the end of the installation you must log in to cPanel with a web browser. In the address bar, type:

http: // my-ip: 2087 / for access to whm which is the admin panel
http: // my-ip: 2086 / for access as a reseller
http: // my-ip: 2082 / for access as a user

These url are the ip and the port, while the domain is delegated, being delegated it will be able to replace the ip with the corresponding domain. For the general administrator in the web browser use your access data to the server to log in to cPanel as root.

image


After the installation and from the Cpanel control panel, we started to configure and verify cpanel.

Some tasks to carry out are:
  • Make sure that the hostname (host name) and the nameservers are correct.
  • Update the Apache and php modules
  • Assign ip addresses and check the dns
  • Install a firewall like csf and some antivirus like clamav
  • Create packages and accounts for users
  • Configure Backups (Backups)
  • Configure statistics software

In terms of security, we also fear the Security Center, which allows you to configure security functions, such as resistance to brute force attacks, security detection, group management and access so that you can better secure your server.

by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Jun 23, 2019 in Web Servers by backtothefuture (552k points) | 316 views
+3 votes
1 answer
asked Jul 28, 2019 in Linux / Unix by backtothefuture (552k points) | 468 views
+3 votes
1 answer
+3 votes
1 answer
asked Aug 9, 2019 in Guides by backtothefuture (552k points) | 1k views
+5 votes
1 answer
asked Jan 29, 2020 in Web Servers by backtothefuture (552k points) | 469 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users