Dashboard installation - Gargravarr2112/kvm-vdi GitHub Wiki

On Debian based systems:

Note: you can use mysql server instead of Maria-db
Ubuntu 16

apt-get install mariadb-server apache2 php git libapache2-mod-php php-mbstring php-gettext php-ssh2 php-imagick php-mysql php-mail

Debian, Ubuntu 15 and earlier.

apt-get install mariadb-server apache2 php5 git libapache2-mod-php5 php-gettext php5-ssh2 php5-imagick php5-mysql php5-mail

Create empty database/user on db server.

cd /var/www/html/
git clone https://github.com/Seitanas/kvm-vdi
cd kvm-vdi

Rename functions/config.php_dist to functions/config.php Edit config.php to fit your needs.
Go to http://yourservename/kvm-vdi
If installation is successful, you will be redirected to login page. Default credentials are: admin/password

Centos specific information

Since Centos uses too old php version, we must install newer one from different repository:

yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php56w php56w-pecl-imagick php56w-devel libssh2-devel gcc php56w-mbstring php-pear-Mail php-pecl-ssh2

If php-pear-Mail or php-pecl-ssh2 fail to install because of dependencies problem, use:

pear install Mail
pecl install ssh2
echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
systemctl restart httpd.service

Comment out Defaults requiretty in /etc/sudoers