Tutorial on installing cPanel and problem fixing

A quick guide to installing cPanel onto your server.


Firstly, check that you have a fresh install of your chosen operating system (CentOS is recommended) and that SELinux is disabled (How do you disable SELinux? find out below).


Connect to your server through the root SSH login.



Edit the file at directory “/etc/selinux/config“, if you are using nano on your server, you can use the following command to open the file for editing through SSH:


  1. nano /etc/selinux/config


  1. SELINUX=enabled


  1. SELINUX=disabled

Save the file and continue by entering the following commands:

  1. cd /home
  2. wget http://layer1.cpanel.net/latest
  3. sh latest
  4. /usr/local/cpanel/cpkeyclt


Problems during installation?


A common problem which occurs near the beginning of the cPanel installation, is an incorrect hostname.

cPanel requires that your system is setup with a full hostname (e.g. server1.mydomain.com NOT JUST server1).

To fix this hostname problem, simply run the following command:


  • hostname yourhostnamehere


(Replace “yourhostnamehere” with your full required hostname as shown in the example above)


Once setup has successfully completed you can access your WHM at http://yourip:2087/.




  1. Perfect!

  2. I use cpanel for all of my setups. Very useful information, thanks for the great post. Site looks great!

  3. This small tutorial is very useful. It will really help me a lot to install CPanel. Nice post.

  4. Great info! cPanel has made the installation process a simple one and only takes a few commands to get the install going

  5. Do you think I’ll be able to install the cPanel on a Dreamhost account? I love cPanel’s backup function that archives your site files and also its database.

  6. Great posting, cPanel has helped me greatly in the past and I think it is one of the better programs for this process.

  7. cPanel is above all other control panels. Very easy to set up as well.

  8. Very useful.Thanks

  9. A million thanks. This is what I was searching for

  10. Great post. It will really help us to install cPanel onto our server. Thanks for sharing this informative blog.

  11. cPanel is now installed on my server! Thanks!

  12. cPanel installation one of the basic need for hosting service .Thanks for the information .

  13. its easy to install cpanel , config it , very hard

  14. I was very afraid in installing it, but after going through your article, it looks very simple and easy, thanks. I’m just going to install it.

  15. What exactly does cPanel do? What does everyone else think of it?

  16. First time when i have used cpanel for my site than at that time i realized to work with panel is really easy and interesting no doubt i was confused also at that time, but now i am proficient in it and looking to install manually, and from this article i got the information also related to this.

  17. Been trying to figure out how to install this. Thanks!

  18. Thanks for this post, I had some problems with the installation (because of the hostname) and now I know why.

  19. great tutorial, helped me get cpanel installed quickly without any issues, thanks!

  20. That is nice to definitely find a site where the blogger knows what they are talking about.

  21. Good fill someone in on and this post helped me alot in my college assignement. Gratefulness you for your information.

  22. Hello everyone thanks for

    good information.

  23. Hello everyone thanks for

    good information. Your site is very useful for me .I bookmarked your site!

  24. Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

  25. Well Explained…But I would appreciate if you could post some screenshot on how things work so that there would be no confusion for the users while installing cpanel onto server?

  26. It is I think the best tutorial teaching step by step process to install cpanel onto the server.

  27. very nice sharing .thank you ! you article is very useful and interesting .

  28. It’s as easy as that? Wish I knew this before. Will go do this now.

  29. I’ve seen progression in every post. Your newer posts are simply wonderful compared to your posts in the past. Keep up the good work!

  30. Terrific, truly outstanding material. Your webpage undoubtedly magnificent. I book-marked this and will definitely come back

  31. TYVM, nice job! Exactly the info I needed to get.

  32. I appreciate you for posting such a wonderful website. Your weblog was not only informative but also very inventive too. We find very few bloggers who can create technical articles that creatively. I keep looking for information regarding something like this. We ourselves have gone through many websites to build up on information regarding this.I will keep coming back !!

  33. Thanks For This Blog, was added to my bookmarks.

Leave a Comment