If you are a new cPanel user, an experienced Linux System Admin or Web Hosting provider who offers cPanel Servers and want to save time, this script is for you. This Bash Script can install, configure, optimize cPanel and solidify the server security. Just run this script on a CentOS Server and this Script will take care the rest of cPanel Server Tasks.
CentOS 7 64bit, AmlaLinux OS 8 64bit, CloudLinux 6, 7 or 8 64bit
- VPS or Dedicated Server with Minimum 1GB RAM, Recommended 2GB RAM.
- Minimum Disk Space 20GB, Recommended 40GB.
- Blank Server Recommended, However you can run this script on current active server to optimize and secure it.
cPanel License Recommended (Script can run without license as well). CloudLinux License required if running CL OS.
Login to your Linux Server with root user and run the following command. Provide your Main Domain (for nameservers and hostname) and Email for Server Notifications.
To run the Script locally, please clone the repositry and then run the following command,
cd easycpanel && chmod +x script.sh && sh script.sh
If you want to run the script directly on the Server with single command, please copy the following command and paste in your Server SSH.
curl -O https://ahtshamjutt.com/cpanel-script/cPanel-v1.1.sh && chmod +x cPanel-v1.1.sh && sh cPanel-v1.1.sh
Freeware
This is a free to use Bash Script to Install cPanel, Optimize and Secure it with a single command. You can use this script on Blank Server and or an existing cPanel Server. Any cPanel user (New or Experienced) can use this script. It will run complete cPanel installation, activate cPanel License, configure cPanel for running all CMS websites, secure cPanel Server, change SSH Port, install Firewall and automatically update the SSH Port in Firewall as well. It will install PHP versions, php extensions and modules as well as configure all the tweak settings, install memcache and ImageMagick and secure them as well, install nGinx, configure and optimize it. This script is based on all the cPanel commands available in cPanel Docs. Bash File is unencrypted, free to use and free to redistribute (credit required).
Script is written by Ahtsham Jutt ( https://www.ahtshamjutt.com )