How do I set up a VPS or Server with cPanel and CSF?

You will need a free program like Putty or Tera Term to access the command line for your VPS or Server. Once you have logged in with the root username and password, you just need to run a couple of commands.

1. First update the operating system and add Nano:

yum update && yum upgrade

Wait a while, then add Nano.

yum install nano wget curl net-tools lsof bash-completion perl

2. Disable network manager in Centos 7:

systemctl stop NetworkManager.service

systemctl disable NetworkManager.service

3. DisableSELinux

Change the /etc/selinux/config (nano /etc/selinux/config) file to

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

Reboot the server (Type reboot)

4. Now install cPanel (Takes about an hour or two and does not require a prompt at any point):

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

5. Then we highly recommend installing CSF (takes 2 minutes and does not require a prompt):

cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

After you have installed cPanel, log into the WHM:
 
https://your-server-ip:2087/ 
 
and start configuring cPanel and CSF. (replace "your-server-ip" with your actual server IP)
 
Configuring everything is tricky and there are a lot of options. I suggest taking your time and using Google to find the setting you like best. Of course, ask us if you have any questions.

5. You will at least need to add name servers or direct your domains via your register to your server IP. Creating name servers is a little tricky, but we have an article here to help.
 
---
 
Additional plugins we suggest adding to your WHM:
 
Account DNS check
wget http://download.ndchost.com/accountdnscheck/latest-accountdnscheck
sh latest-accountdnscheck
 
ConfigServer Mail Manage (cmm)
wget https://download.configserver.com/cmm.tgz
tar -xzf cmm.tgz
cd cmm/
sh install.sh
  • cpanel, whm, install, csf, install cpanel, set up cpanel, add, new vps, new server, set up
  • 2260 Users Found This Useful
Was this answer helpful?

Related Articles

No free leases

When checking your messages file on a Linux server tail -f /var/log/messages you might see...

Your IP address has changed cPanel log in error. Here’s how to fix It and why

Your IP address has changed. Please log in again. There are 3 main situations in which this...

How do I apply a license key to imunify360 or Imunify+ that is already installed?

This can be done in any command line interface on the server like the terminal in Web Host...

How do I apply a license key to imunify360 or Imunify+ that is already installed?

This can be done in any command line interface on the server like the terminal in Web Host...

How do I add/create a MySQL database?

It is easy once you get used to it. Here is how to make a MySQL database connection ready....