cPanel VPS (KnownHost) - Setup and Configuration

How to configure a new cPanel VPS (KnownHost):

Print this list so you have it in front of you while going through the process!

Note: Your will receive an email from KnownHost with the new VPSs IP address and password (the password will be the temporary one used when the VPS was ordered)

  • Open a new window/tab in your browser and go to the IP address + port 2086 – example “70.170.270.170:2086”
  • When prompted – login using the username “root” and the password from the email

You will now set up WHM/cPanel....

  • You will see the license agreement – click “I Agree” – go to the next step
  • You will now be on the "Feature Showcase" page (NOTE: This will probably not come up on newer versions of WHM)
    • Enable "Email Archiving" and "Email Settings Auto Discovery"
    • Select "No, thank you" for "Query Apache for 'nobody' senders", "SMTP Restrictions" and "Trust X-PHP-Script for 'nobody' senders"
    • Click "Save Settings"
  • You will now be at the WHM home page
    • Click on DNS Funtions --> Delete a DNS Zone
    • Click on "ns1.cyberbasement.com" to highlight it --> click "Delete" --> Confirm deletion on next screen by clicking "Delete"
    • You shoud see a "Removal Complete" notice to confirm the zone was deleted
    • Repeat this step for "ns2.cyberbasement.com"
    • Once you have removed both zones --> return to the WHM home page
  • Under "Server Configuration" in the left menu - select "Basic cPanel & WHM Setup"
    • Change the email address under "Enter one or more email addresses to contact in case a problem arises with this server" to "servers@cyberbasement.com"
    • Scroll down to the "Nameservers" section
    • Enter our nameservers here – ns1.cyberbasement.com and ns2.cyberbasement.com unless you need to use other nameservers for special circumstances
    • Click the “Add A Entry for this nameserver" next to "ns1.cyberbasement.com"
    • Enter the IP address for "ns1.cyberbasement.com" if it is not automatically populated (64.235.39.238)
    • Click "Add Entry" --> You should receive a message similar to "An A entry for ns1.cyberbasement.com has been added using the IP 64.235.39.238"
    • Click "Close" and repeat these steps for "ns2.cyberbasement.com" (173.245.31.186)
    • Click "Save Changes" --> return to the WHM home page
  • Under "Server Configuration" in the left menu - select "Change Root Password" (NOTE: On newer VPS' you need to change this in the Parallels Power Panel and that will change the password in WHM as well)
    • Enter the CyberBasement cryptic server password twice (Be Very Careful - NO TYPOS)
    • Click "Change Password" --> return to the WHM home page
    • Login via another browser to confirm password change worked (repeat step in primary browser of secondary login fails)
  • Under “Server Configuration” in the left menu – select “Update Preferences”
    • Check the following:
      • Release Tier = Stable (safest)
      • Daily Updates = Manual Updates Only
      • Operating System Package Updates = Manual Updates Only
      • SpamAssassin Rules Updates = Manual Updates Only
    • Click “Save” – a message will appear – “The system has saved your settings. Any changes will take effect when the next update runs. Do you want to update now?” – click “Update Now” -  click the “Click to Upgrade” button and wait for the update to finish (this may take a while)
    • Logout and log back in to WHM - check that correct version is being displayed - repeat update if necessary
    • Leave browser open and logged in to WHM

Now you are going to update the VM’s software…

  • Initiate a Putty session (or any other shell utility/program you want to use) – enter the IP address of the new VM – login as root | Th….
    • Type: cd .. and hit “enter” to get to the root directory of the VM
    • Type in the following command: yum update
      • If asked “Total download size xx M” “Is this ok [y/N]:” enter “y” and hit “enter” – updates will now be installed – wait for this process to finish (this can take a while) – When it is done it will say “Complete!”
      • If you get the message " No Packages marked for Update" - move on to next task
    • Type “exit” and close your shell session

Now you are going to update Apache....

  • Go back to your WHM window
  • Under “Software” in the left menu – select “EasyApache (Apache Update)”
  • Under “Begin by selecting a profile to load” – select Previously Saved Config (** DEFAULT **) – click “Start customizing based on profile”
  • Under “Please choose which apache to build:” – select the newest version of Apache unless you have a reason or need for a lesser version (example: old sites that will not work properly with newer versions or new version is a major release and has changes that will not work with current websites) – click “Next Step”
  • Under “Please choose which PHP version(s) to build:” – select the newest version of PHP unless you have a reason or need for a lesser version (example: old sites that will not work properly with newer versions or new version is a major release and has changes that will not work with current website) – click “Next Step”
  • Scroll down and click “Exhaustive Option List”
  • The following list is what most of our servers run – make sure these items are selected and any others you know will be needed on this VM:Under “Preferences” – check “Report Errors to cPanel”
    • Asis
    • AuthnDefault - Integrated in PHP 5.4+
    • Cache
    • Deflate
    • Env
    • Expires
    • Fileprotect
    • Headers
    • Imagemap
    • MemCache - Integrated in PHP 5.4+
    • Mod SuPHP
    • Proxy
    • UniqueId
    • Version
    • EAccelerator for PHP
    • IonCube Loader for PHP
    • Mod Security
    • Suhosin for PHP - May not be supported by PHP 5.4+
    • Zend Guard Loader for PHP
    • Bcmath
    • CGI
    • Calendar
    • Curl
    • CurlSSL - note: disables Curl
    • Curlwrappers
    • Exif
    • FTP
    • GD
    • gettext
    • Iconv
    • Imap
    • MailHeaders
    • Mbregex
    • Mbstring
    • Mcrypt
    • Mysql
    • Mysql of the system
    • MySQL “Improved” extension
    • Openssl
    • PDO - note: Enables SQLite3
    • PDO MySQL - note: Enables PDO
    • POSIX
    • Path Info Check
    • Pear
    • SOAP
    • SQLite3
    • Silence Deprecated Patch
    • Sockets
    • System Timezone
    • TTF
    • Tidy
    • XSL
    • XmlRPC
    • Zend Multibyte - May not be supported by PHP 5.4+
    • Zip
    • Zlib
  • Click “Save and build” – click "ok" to confirm - click "I Understand" to acknowledge - wait for this process to finish (this will take quite a while)
  • Once the build is complete - a popup window will appear "Configure Suexec and PHP" - select the following:Click "Save New Configuration" --> Once new configuration is saved - click "Close"
      • "Default PHP Version (.php files)" = 5
      • "PHP 5 Handler" = suphp
      • "Apache suEXEC" = on
  • Return to WHM home page

Now you are going to set up the DNS Cluster for the new VM (Do not mess this up, mistakes here can affect all of our DNS records. If you have ANY issues/questions - ASK FOR HELP!)...

  • Under "Cluster/Remote Access" in the WHM left menu - click "Configure Cluster"
  • Under "Modify Cluster Status" - select "Enable DNS Clustering" - click "Change"
  • Under "Add a new server to the cluster" - make sure "Type" is "cPanel" - click "Configure"
  • Under "Remote cPanel & WHM DNS host" - enter "ns1.cyberbasement.com"
  • Under "Remote server username" - enter "root"
  • Click "Fetch remote access key"Copy the key from the nameserver and paste it into the window provided
    • If you receive a "Invalid Security Token" warning - click "Proceed with the current operation" to update the token
    • Login to the nameserver
  • Make sure that "Setup Reverse Trust Relationship" is CHECKED
  • Make sure that "Debug Mode" is UNCHECKED
  • Set "DNS Role" to "Stadalone"
  • Click "Submit"
  • Return to "Configure Cluster" page
  • Make sure that ns1's status has a green checkmark
  • Set ns1's "DNS Role" to "Synchronize Changes" - click the floppy disk icon to save
  • Click "Return to Cluster Status"

    Your Done with NS1... Lets move on to NS2...

  • Under "Add a new server to the cluster" - make sure "Type" is "cPanel" - click "Configure"
  • Under "Remote cPanel & WHM DNS host" - enter "ns2.cyberbasement.com"
  • Under "Remote server username" - enter "root"
  • Click "Fetch remote access key"Copy the key from the nameserver and paste it into the window provided
    • If you receive a "Invalid Security Token" warning - click "Proceed with the current operation" to update the token
    • Login to the nameserver
  • Make sure that "Setup Reverse Trust Relationship" is CHECKED
  • Make sure that "Debug Mode" is UNCHECKED
  • Set "DNS Role" to "Stadalone"
  • Click "Submit"
  • Return to "Configure Cluster" page
  • Make sure that ns2's status has a green checkmark
  • Set ns2's "DNS Role" to "Synchronize Changes" - click the floppy disk icon to save
  • Return to the WHM "Home" page

Now you are going check rDNS for the VPS...

  • Do an rDNS lookup and see if it is set up properly and resolves correctly
    • If it resolves properly --> your done - move on
    • If it does not resolve properly - do the following:
      • Login to KnownHost account
      • Open a support ticket titled "Please setup rDNS (Reverse DNS) on our new VPS" - Message = “Please set up the following for rDNS (reverse DNS): (enter the main IP number of the VM here) to (enter the FQDN/hostname here) – Thank you”
        • Example Message: Please set up the following for rDNS (reverse DNS): 64.235.59.160 to host11.cyberbasement.com – Thank you

 

Congratulations! – You are now ready to use the new VPS…. Now move on to the next article “cPanel VPS - Advanced Settings (Security Hardening)”

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

cPanel VPS - cPremote backup software installation

Installation of cPremoteRequirements: You need a Linux cPanel server running latest stable...

cPanel to cPanel Account Migration

How to migrate an account from one cPanel server to another cPanel server Remove the cPanel...

Installing Wildcard SSL On All Servers

To install a new or renewal SSL certificate server-wide, it must be set up for both web and mail...