Install SSL on cPanel with One IP Address

This article goes over installing an SSL on a WHM or cPanel server with only one IP address.  If you need to have more than one SSL, you will need to order a block of IP addresses from Hosting.com.  However if you only have one site and one SSL, this article will assist you in installing the SSL.

  1. From WHM, choose Install a SSL Certificate and Setup the Domain.
  2. Change the username to nobody before you submit the form, be sure to include the key, cert, and CA intermediates.
  3. Run these commands via SSH. Replace username with the account's username, and domain.com with the correct domain name from the SSL certificate.
  4. cd /var/cpanel/userdata
    mv nobody/domain.com_SSL* username/
    replace nobody username -- username/*
  5. Edit the file /var/cpanel/userdata/main and remove the line with the domain name you're setting up the SSL for. It should be under sub_domains
  6. Run these commands via SSH (note: the command may be /scripts/rebuildhttpconf instead)
  7. /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
  8.  From WHM choose Manage SSL Hosts.
  9.  Select the domain from the pulldown menu and click Share.
  10.  If mod_php is being used with with open_basedir, and/or mod_userdir is enabled, exclude the domain under PHP open_basedir Tweak, or Apache mod_userdir Tweak as needed so the other sites can use that SSL too.