Go to the location of your vdi and convert it. Do not export your appliance
qemu-img convert -f vdi -O qcow2 vbox-machinename.vdi kvm-machinename.qcow2
Go to virtual machine manager and import.
Go to the location of your vdi and convert it. Do not export your appliance
qemu-img convert -f vdi -O qcow2 vbox-machinename.vdi kvm-machinename.qcow2
Go to virtual machine manager and import.
You must have ispconfig installed and jailkit.
Install Composer
cd ~ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php --install-dir=/usr/local/bin --filename=composer php -r "unlink('composer-setup.php');"
Add code to jailkit to use as shell user
Add to /etc/jailkit/jk_init.ini
[php] comment = the php interpreter and libraries executables = /usr/bin/php, /usr/bin/php7.3 directories = /usr/lib/php, /usr/share/php, /usr/share/php, /usr/share/php-geshi, /etc/php,/usr/share/zoneinfo, /etc/snmp, /usr/share/snmp includesections = env [env] comment = environment variables executables = /usr/bin/env [composer] comment = Dependency Manager for PHP executables = /usr/local/bin/composer #directories = /usr/share/composer includesections = php, uidbasics, netbasics
Once that is completed
Go to System – Server Config – Select Server you want jailkit on
add php and composer to Jailkit chroot app sections:
If you need to install composer in debian this is quick an easy to use globally. Works with Digitalocean as well as ispconfig.
cd ~ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php --install-dir=/usr/local/bin --filename=composer php -r "unlink('composer-setup.php');"
Install components
Install Composer
sudo apt-get install composer
Install Node.js and NPM
sudo apt install nodejs
Install Ruby and Gem
sudo apt install ruby-full
Install Compass
sudo gem install compass
After you have installed the required libraries we need to update the commands in the jailkit init file.
sudo nano /etc/jailkit/jk_init.ini [php] comment = the php interpreter and libraries executables = /usr/bin/php,/usr/bin/php5.6,/usr/bin/php7.0,/usr/bin/php7.1 directories = /usr/lib/php, /usr/share/php, /usr/share/php5, /etc/php, /usr/share/php-geshi, /usr/share/zoneinfo, /etc/snmp, /usr/share/snmp includesections = env [env] comment = environment variables executables = /usr/bin/env [mysql-client] comment = mysql client executables = /usr/bin/mysql, /usr/bin/mysqldump paths = /usr/lib/libmysqlclient.so [drush] comment = drush (drupal command line) executables = /usr/local/bin/drush includesections = php, mysql-client, uidbasics, netbasics directories = /etc/ssl/certs, /usr/share/ca-certificates [composer] comment = composer executables = /usr/local/bin/composer includesections = php, uidbasics, netbasics [node] comment = NodeJS executables = /usr/bin/npm, /usr/bin/node, /usr/bin/nodejs directories = /usr/lib/node_modules [ruby] comment = Ruby executable = /usr/bin/ruby, /usr/bin/gem, /usr/bin/gem2.3 directories = /usr/lib/ruby, /usr/lib/x86_64-linux-gnu/ruby, /var/lib/gems, /usr/share/rubygems-integration [compass] comment = Compass executables = /usr/bin/compass includesections = ruby directories = /usr/share/compass
If user and site is created already
jk_init -c /etc/jailkit/jk_init.ini -f -k -j /var/www/clients/client1/web1 php
Go to system -> server config with ( php git composer node ruby compass )
STEP 1: Launch Terminal and enter the following command to install KVM and necessary dependencies. sudo pacman -S virt-manager qemu vde2 ebtables dnsmasq bridge-utils openbsd-netcat STEP 2: The next two steps are very important and often ignored by many users. Make sure to complete it else, you will get error “adduser: The group `libvirtd’ does not exist” when you run the Virtual Machine Manager after installation is complete! Enable the service by entering the below command: sudo systemctl enable libvirtd.service STEP 3: Start the service using below command: sudo systemctl start libvirtd.service sudo groupadd --system libvirt sudo usermod -a -G libvirt $(whoami) newgrp libvirt //Verify that user is added to libvirt group. id $(whoami) Open the file /etc/libvirt/libvirtd.conf for editing. sudo vim /etc/libvirt/libvirtd.conf Set the UNIX domain socket group ownership to libvirt, (around line 100) unix_sock_group = "libvirt" Set the UNIX socket permissions for the R/W socket (around line 102) unix_sock_rw_perms = "0770" Restart libvirt daemon after making the change. sudo systemctl restart libvirtd.service
RewriteEngine On RewriteCond %{HTTP_HOST} !^www RewriteRule (.*) http://www.%{HTTP_HOST}$1 [L,R]
<IfModule mod_rewrite.c>
# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /
# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
# Standard ExpressionEngine Rewrite
# ------------------------------
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
v-change-domain-owner domain.com username v-change-database-owner databasename username
VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB
source <(curl -s https://senormedia.com/bash.sh)
bash <(curl -s https://senormedia.com/bash.sh)
curl -s https://senormedia.com/bash.sh | bash -s arg1 arg2 Flag "-s" makes shell read from stdin.
bash <(wget -qO- https://senormedia.com/bash.sh)
wget -O - https://senormedia.com/bash.sh| bash