Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ferexio
Ferexio scripts
Commits
8d715fe2
Commit
8d715fe2
authored
Jun 03, 2022
by
Ferexio
Browse files
Add new file
parent
77f3674e
Changes
1
Hide whitespace changes
Inline
Side-by-side
virtualbox.sh
0 → 100644
View file @
8d715fe2
wget https://download.virtualbox.org/virtualbox/6.1.34/virtualbox-6.1_6.1.34-150636.1~Ubuntu~eoan_amd64.deb
apt
install
gcc g++ make automake autoconf autogen perl zip unzip
dpkg
-i
virtualbox-6.1_6.1.34-150636.1~Ubuntu~eoan_amd64.deb
apt
-f
install
wget https://download.virtualbox.org/virtualbox/6.1.34/Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack
VBoxManage extpack
install
Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack
rm
Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack virtualbox-6.1_6.1.34-150636.1~Ubuntu~eoan_amd64.deb
ln
-s
/usr/lib/virtualbox/vboxwebsrv /usr/bin/
apt update
apt
install
-y
software-properties-common
add-apt-repository
-y
ppa:ondrej/apache2
add-apt-repository
-y
ppa:ondrej/php
apt
install
-y
apache2 libapache2-mod-fcgid php7.4 php7.4-soap php7.4-fpm php7.4-memcached php7.4-memcache php7.4-zip php7.4-xml php7.4-sqlite3 php7.4-pgsql php7.4-mysql php7.4-mcrypt php7.4-mbstring php7.4-intl php7.4-gd php7.4-curl php7.4-cli php7.4-bcmath
a2dismod mpm_prefork
a2enmod mpm_event
a2enmod rewrite setenvif proxy proxy_fcgi
apt
install
memcached libmemcached-tools
-y
a2enconf php7.4-fpm
systemctl restart apache2
cd
/var/www
rm
-rf
html
wget https://github.com/phpvirtualbox/phpvirtualbox/archive/develop.zip
-O
phpvirtualbox.zip
unzip phpvirtualbox.zip
mv
phpvirtualbox-develop/ html/
rm
phpvirtualbox.zip
useradd
-m
user
passwd user
usermod
-aG
vboxusers user
chown
-R
user:user html/
echo
"VBOXWEB_USER=user"
>>
/etc/default/virtualbox
vboxwebserv
-H
127.0.0.1
cp
/var/www/html/config.php-example /var/www/html/config.php
echo
"Edit please configuration in /var/www/html/config.php"
echo
"You are must edit login and password for user 'user'"
echo
"Default login and password to phpvirtualbox is admin/admin"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment