Softaculous script library that performs auto-installation functionality for web applications. The automated installation scripts provided by Softaculous run as administrative actions with web control panels such as CPanel and perform tasks such as setting permissions, installing additional software, and modifying configuration files and database tables. Such website control panels serve as interfaces provided by hosting companies to manage their services in one place. Some of the many applications in the Softaculous repository include popular services like WordPress and Drupal, as well as Joomla and even e-commerce offerings. For this reason, Softaculous can be a very useful tool for server administrators, at the cost of simplifying their work.
The focus of this tutorial is to create Softaculous to work with WebHost Manager (WHM), which is a web server administration tool for Cpanel, in order to be able to perform installation.
To successfully complete this tutorial, you will need the following:
- 1 Linux server (Cloud Server, or dedicated server) with Cpanel / WHM
Please note that the IonCube bootloader must be enabled. If not, then the first part of the tutorial below details how to enable this PHP extension in order to be able to use Softaculous. You may also need root access depending on which directory you chose to install your server in.
Before we can install Softaculous, let’s check if the IonCube bootloader is enabled. This is a PHP extension that handles executing and reading encoded files, and must be selected in order for IonCube to handle secure and encoded PHP files. To enable the IonCube bootloader, follow these steps in your WHM:
1. Login to your WHM as root 2. Go to Server Configuration> Tweak Settings> PHP 3. Select IonCube in the options for Cpanel PHP 4. Click on the Save button
If your server has a firewall, remember to allow access to download packages from * .softaculous.com and whitelist the appropriate Softaculous mirrored domains used for script packages:
api.softaculous.com (IP : 22.214.171.124) s1.softaculous.com (IP : 126.96.36.199) s2.softaculous.com (IP : 188.8.131.52) s3.softaculous.com (IP : 184.108.40.206) s4.softaculous.com (IP : 220.127.116.11) s7.softaculous.com (IP : 18.104.22.168)
With IonCube enabled, it will be possible to install and configure Softaculous. Accessing the server and in any directory, download the installation script for Softaculous using the wget command. This command selects the installation script, which is an executable file, and saves it in the current directory.
wget -N http://files.softaculous.com/install.sh
This installation script must be given full permissions in order for it to run correctly when installing Softaculous. Use chmod to change the permissions to 755 as shown below. You may need to use sudo chmod 755 install.sh if you are not logged in as root.
chmod 755 install.sh
Now that the install.sh file has the correct 755 permissions, run the install script from the directory it needs to install Softaculous:
Note that if you want to use Softaculous with a proxy, you can pass these settings to it when you run the install script, instead of typing the following, replacing the uppercase fields with your own proxy values:
./install.sh proxy proxy_ip=YOUR_IP:PORT proxy_auth=USERNAME:PASSWORD
When the installation process is complete, a message appears with the following line of text, along with additional information about the installation location and updates from the Softaculous team:
Congratulations, Softaculous was installed successfully
After this post, Softaculous is available in your WHM and ready for use by Cpanel clients. To configure a silent installation, return to the WHM dashboard. Enter the following command in the search bar:
With Enter, you should find Softaculous. You can also find it under Plugins> Softaculous – Instant Installs in WHM panel. If you have versions of WHM older than 11, then Plugins / Add-Ons, click on:
Softaculous – Instant Installs
To confirm successful installation, click the button above, which will redirect you to the Softaculous landing page containing news and information about your version of Softaculous software. If you have the suPHP function enabled on the server, Softaculous must be additionally configured, otherwise the installation is complete. suPHP is another tool for executing PHP scripts in terms of their permissions to run on the server.
If you have suPHP, you should configure Softaculous to work with it by following these steps. Go to the Softaculous landing page from the previous step.
1. Go to the Settings tab 2. Install files using CHMOD to 0644 3. Install directories using CHMOD to 0755
All applications installed via Softaculous can also be uninstalled via this plugin, making all aspects of the process as easy as possible.
That is, all you need to know is to have access to the auto installations that Softaculous provides. Keep in mind that, since Softaculous is primarily a paid service, the free version will not have the same variety of applications as the professional version. However, even the free version is still useful for ease of use when installing web applications for server admins. A complete list of available apps can be found on the Softaculous website for those that are curious. If this guide was helpful to you, don’t hesitate to even share it with your friends!