Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/lib/panels/ent/session.sample.php

<?php

//define('SOFT_LOGOUT_URL', 'http://YOUR_LOGOUT.URL'); // Define your custom logout URL here
//define('SOFT_LOGOUT_REDIRECT', 'http://YOUR_REDIRECT.URL'); // Define the URL where you want the user to be redirected after loggingout using default logout URL
//define('SOFT_SIGNIN_REDIRECT', 'http://YOUR_SIGNIN.URL'); // Define the URL where you want the user to be redirected for login
//define('NO_SIGNIN_REDIRECT_ADMIN', '1'); // Define 1 if you do not want to redirect admin page to the SOFT_SIGNIN_REDIRECT defined

/**
 * (Optional) Owner who will own this account. This is not the username but this is the user who will own the account.
 * If not specified 'root' will be assumed.
 * Default owner is root which is created during installation time.
 **/
$PRE_LOGIN['owner'] = 'root';

/**
 * Username who will be accessing Softaculous Enterprise.
 * Admin user is root which is created during installation time.
 **/
$PRE_LOGIN['username'] = 'test';

/**
 * Email of the username. 
 * This is used to send emails like whether Install, Remove, Update of Scripts were successful or not.
 **/
$PRE_LOGIN['email'] = 'a@sa.com';

/**
 * Control Panel Plan (Optional)
 * This is used to specify which control panel plan does this user falls under
 * Guide on how to use plans : 
 * http://www.softaculous.com/docs/Softaculous_Enterprise_Integration#function_listcpplans.28.29_.28Optional.29
 **/
//$PRE_LOGIN['plan'] = 'platinum';

/**
 * UID is used to chown the directory of the installations of scripts installed by Softaculous.
 * This is required to set the proper permission of the files/folder while installing, updating, the scripts.
 **/
$PRE_LOGIN['uid'] = '505';

/**
 * (Optional) GID of the username. If not specified GID's value will be assumed same as UID's value.
 * This is required to set the proper permission of the files/folder while installing, updating, the scripts.
 **/
$PRE_LOGIN['gid'] = '505';

/**
 * Domains - It is required to install the Scripts. So it is compulsory to add atleast one domain for each user. 
 * Each user can have multiple domains. You can increment the 2nd key of the array $PRE_LOGIN to add more domains.
 * 
 * Domain 			: 	Domain Name where the users will be installing the scripts.
 * Path 			: 	Full path of the web accessible directory. Softaculous will extract the installations on this location.
 * Backup Directory :	Full Path of the Backup Directory. Backups created by Softaculous will be located here.
 *						Specify accordingly that it can be accessed by Softaculous too which is on NFS.
 * Replace Path 	:	This "Replace Path" will be replaced with empty in PATH to get the correct path according to scripts.
 *						According to the scripts PATH mentioned above is not correct as we are on NFS. We have to generate a new path with respect to scripts.
 *						Example : 	WordPress needs to be installed on /var/www/html/wp on a server
 *									On NFS for Softaculous /var/www/html is mounted at a directory say /NFS/a/var/www/html
 *									So now for Softaculous, wordpress path is /NFS/a/var/www/html/wp
 *									But Softaculous requires /var/www/html/wp.
 *									/NFS/a/var/www/html/wp is converted to /var/www/html/wp by removing /NFS/a.
 *									Here /NFS/a is Replace Path.
 * Data Directory 	:	Full path of the Data Directory. Some scripts like Elgg, Moodle, etc need a non web accessible folder.
						Specify accordingly that it can be accessed by Softaculous too which is on NFS.
 **/
$PRE_LOGIN['domains'][0]['domain'] = '192.168.17.157';
$PRE_LOGIN['domains'][0]['path'] = '/NFS/a/var/www/html';
$PRE_LOGIN['domains'][0]['backup_dir'] = '/NFS/a/var/www';
$PRE_LOGIN['domains'][0]['replace_path'] = '/NFS/a';
$PRE_LOGIN['domains'][0]['data_dir'] = '/NFS/a/var/www';

?>
Back to Directory