Note : At the moment this is possible for cPanel, Directadmin and Webuzo only.
Install a Script from Command Line (Only For cPanel, Directadmin and Webuzo)
Softaculous allows you to install a script from command line. Here is the guide:
- Use the following command to install the script :
php /path/to/softaculous/cli.php --install --panel_user=USER --panel_pass=PASS --soft=26 --softdirectory=test --admin_username=admin --admin_pass=pass
E.g. for cPanel :
/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --install --panel_user=USER --panel_pass=PASS --soft=26 --softdirectory=test --admin_username=admin --admin_pass=pass
- Thats it. You have installed WordPress on your server.
- In the above command the first parameter should be –install as this parameter will initiate the install function.
- –panel_user=USER. Here panel_user is the field name and USER is the value for that field.
- soft=26 – This is the script id. 26 is for WordPress, you can find the script id in /path/to/softaculous/enduser/scripts.php
- panel_user=USER – This is the control panel username
- panel_pass=PASS – This is the control panel password
- panel_host=domain.com – OPTIONAL : This is the hostname/IP of the server. By default Softaculous will consider the same server where the command is executed.
- softdirectory=directory – OPTIONAL : This is the directory where you wish to install the script. By default it will be installed on the root domain.
- admin_username=admin – OPTIONAL : This is the username for the script’s admin user
- admin_pass=pass – OPTIONAL : This is the password for the script’s admin user
- site_name=Site_Name – OPTIONAL : This can be the Site Name for the script
- firstname.lastname@example.org – OPTIONAL : The installation details will be sent to the email provided here. Note : The email will be sent to the user by default and additionally to the email specified here.
- sets_name=SET-NAME_admin – OPTIONAL : This is the set name which you want to install for the wordpress script. Note : Here, SET-NAME is the name of your set and _admin is appended when the set is created in the admin panel. You can install multiple sets by passing the sets_name parameter several times.
NOTE: Please enclose your panel_user, panel_pass, admin_username, admin_pass, sets_name in single quotes(‘) while passing in the CLI command above.
Similarly you can use any fields and the field name can be found in the install.xml of the script