How To Install vcPanel - VPS Control Panel
|
Submitted by sherin (Contact Author) (Forums) on Mon, 2009-12-14 17:02. :: Control Panels | Virtualization
How To Install vcPanel - VPS Control PanelIntroductionvcPanel is a vps control panel for managing VPS servers around the globe from one portal. It is mainly written in PHP + MySQL so you can install it on any hosting server. vcPanel has an auto installer script but that supports only Centos 5.x distributions. In general vcPanel can be installed on any operating system having Apache + PHP5.2 + MySQL5.
RequirementsSoftwares required for vcPanelWebserver (Apache and compatible web servers)
PHP modules and functions required
Install vcPanelNote: Please install vcPanel as per the procedure given below, make sure your server meets the requirements. If you would like to install and secure your control panel by our team please contact us from here. So that we can do it for you.
Download vcPanelPlease dowload the vcPanel from http://vcpanel.net/Download and upload the tar file to your sever. Then extract it.
Configure vcPanelYou may need to edit two files, config.php and adminauth.php. config.php contains the following. You may need to edit the required fields, all are self-explanatory. define("_DB_HOST", "localhost"); // vcpanel db host
define("_DB_NAME", "vcpanel_db"); // vcpanel db name
define("_DB_USER", "vcpanel_dbuser"); // vcpanel db user
define("_DB_USER_PASSWORD", "vcpaneldbpasswird"); // vcpanel db user password
define("_DOC_ROOT","/path-to-vcpanel-installation ") ;
// vcpanel document root no trailing slashes eg : /home/user/public_html/vcpanel
define("_PHPCLI_PATH","/usr/bin/php");
// Path to php client binary,no php-cgi paths. remember php-cli path
define("SSH_KEY_TYPE","ssh-rsa");
//ssh key type for rsa it will be "ssh-rsa" , if it is dsa it will be "ssh-dsa"
define("SSH_PRIVATE_KEY","/path-to-key/id_rsa");
//path to private key. Remember make it out side document root , eg : /home/user/key/id_rsa
define("SSH_PUBLIC_KEY","/pathto -key/id_rsa.pub");
//path to public key . Remember make it out side document root ,
// eg : /home/user/key/id_rsa.pub
Now you may need to edit adminauth.php. This contains the admin login name and password. Make it harder. define("_ADMIN_USER","admin"); // admin username
define("_ADMIN_PASS","pass"); // admin password make it very hard , very very hard
Set permissionsYou may need to set the following permissions: chmod 666 vadmin/.htaccess
Create DatabaseNow create a MySQL database with the database user name and database user password that you use in config.php. Give privileges to above database with the user name and password. Now restore the database vcpanel.sql to your database.
Create SSH KeysNow you may need to create ssh public and private keys and upload them to your installation server, to a folder outside your document root. Make sure to secure the folder. Don't allow anyone to access it. Only give permission to vcPanel scripts to access that folder. If you don't know how to do it please contact us. To know how to create ssh keys please proceed with the following steps. 1) ssh to your server: # ssh vcpanel@server.yourdomain.com 2) Generate keys: # ssh-keygen -t rsa
Now hit the ENTER key until you get the command prompt back. Please remember that there's no need to give a password for the ssh key. # ls -al ~/.ssh/
Login to admin PanelYou can login to admin panel from http://yourvcpanelinstallationurl/vadmin/
Install Product KeyYou will get your product key from our license portal as soon as you signed up. If you are a reseller you can use the same product key in all vcPanel installations. Update the product key with vcPanel -> Product key.
Basic SettingsMake sure you may need to set up the basic settings and admin account from vcPanel admin.
Secure vcPanel accessYou must limit access to your admin panel from certain IPs. Go to vcPanel -> Secure access.
Set up CronYou may need to setup a daily cron job as follows: 0 1 * * * php /path-to-vcpanel-install/script/backupcron.php /path-to-vcpanel-install
|

![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)


Recent comments
1 day 10 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 19 hours ago
1 day 20 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 17 hours ago