OpenVCP
What is openvcp?
OpenVCP is a Open-Source VServer Control Panel published under the GNU General Public Licence (GPL). OpenVCP is developed for use with Linux in combination with Linux-Vserver ( http://www.linux-vserver.org ). It provides a web-based interface to manage a whole farm of VServer hosts, build guests, control the guests, account traffic and much more.
Set up openvcp on Alpine Linux
This document will be a quick c/p guide to setup openvcp on Alpine linux. What we will setup is the following:
- Lighttpd with PHP
- Mysql
- openvcp
Install lighttpd, PHP and MySql
apk add lighttpd mysql mysql-client php-mysql php-mysqli php php-xml php-gettext php-sockets php-gd
Configuring Lighttpd
Edit lighttpd.conf
nano +46 /etc/lighttpd/lighttpd.conf
Uncomment lines:
uncoment include "mod_fastcgi.conf", save and exit
Starting http service and adding to boot
/etc/init.d/lighttpd start && rc-update add lighttpd default
Configuring MySql
/usr/bin/mysql_install_db --user=mysql /etc/init.d/mysql start && rc-update add mysql default /usr/bin/mysqladmin -u root password 'password'
Create the openvcp database
Note: you can import the database from command line or from the openvcp web page later.
mysql -u root -p
CREATE DATABASE openvcp; GRANT ALL PRIVILEGES ON openvcp.* TO "root"; FLUSH PRIVILEGES; EXIT
Installing openvcp
Install openvcp
Make webapps folder
mkdir /usr/share/webapps/ -p
Download
cd /usr/share/webapps/ wget http://files.openvcp.org/openvcp-web-0.5rc3.tar.gz
Unpack and delete tar file
tar zxvf openvcp-web-0.5rc3.tar.gz rm openvcp-web-0.5rc3.tar.gz
Change Folder Persmissions
chmod -R 777 /usr/share/webapps/openvcp/core/cache
Make symlinks to openvcp
ln -s /usr/share/webapps/openvcp/ /var/www/localhost/htdocs/openvcp
Configuring openvcp
Browse to: http://WEBSERVER_IP_ADDRESS/openvcp/ and Install openvcp completing the information as appropriate from the web browser.
Openvcp Installation steps:
Welcome to the setup of OpenVCP
MySQL
- host: localhost
- dn: openvcp
- user: root
- Password: password
- prefix: openvcp_
Other
- location: /openvcp
relative to webroot
- default locale: en_US
- admin email: yourname@email.com
After set all click on "setup" to finish the installation.
Congratulations, you installed openvcp!
You have openvcp web access system working, to access go to http://WEBSERVER_IP_ADDRESS/openvcp/ user: Admin password: test
Licence
Licence:
openvcp is published under the GNU General Public Licence (GPL).