Skip to content
UnderHostPublic

About

cPInstall is a small bash script created at first for UnderHost customer then released to public. Its purpose is to give access to install, optimize, secure any common cPanel plugin within one click. Useful for novice and helpful for advanced users.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

cPInstall (Modernized Community Build)

cPInstall is a refreshed cPanel helper script that keeps the classic all-in-one menu while modernizing execution safety, logging, and installer sources.

What changed in the modern build

  • safer Bash defaults (set -Eeuo pipefail)
  • package-manager detection (dnf, yum, apt)
  • HTTPS downloads for external installer scripts
  • unified logging and error helpers
  • all classic menu commands now map to implemented functions

Menu operations (1-16)

cPanel

  1. Install cPanel
  2. Install cPanel DNSOnly
  3. Force cPanel Update

Security

  1. Install CSF Firewall
  2. Install Malware Detection Tools (ClamAV, rkhunter, Maldet)
  3. Secure /tmp partition flags (nodev,nosuid,noexec)
  4. Change SSH Port
  5. Disable SELinux
  6. Upgrade CSF 14 -> 15

Performance

  1. Install hTop
  2. Install myTop
  3. Install Process Monitor (btop/glances)
  4. Run MySQL Tuner

Plugins & Addons

  1. Install LiteSpeed
  2. Install CloudLinux
  3. Install Softaculous
  4. Install FFMPEG

Usage

chmod +x cpinstall.sh
sudo ./cpinstall.sh

Paths

  • Log file: /var/log/underhost_cpanel.log
  • Config placeholder: /etc/underhost/cpanel.conf

Important notes

  • External installer URLs and package names can change over time; verify in staging before production.
  • Some operations depend on specific distro repositories or licenses.
  • CSF install source is pinned to https://backup.underhost.com/mirror/configserver/csf.tgz.
  • CSF migration script source is https://backup.underhost.com/mirror/configserver/migrate_csf.sh.

License

GPLv3. See LICENSE.

About

cPInstall is a small bash script created at first for UnderHost customer then released to public. Its purpose is to give access to install, optimize, secure any common cPanel plugin within one click. Useful for novice and helpful for advanced users.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages