Configfile bootstrap.sh config file

From rbachwiki
Revision as of 23:45, 12 February 2019 by Bacchas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#update packages
apt-get update

#upgrade packages
apt-get upgrade

#Apache
apt-get install -y apache2
# enable apache mods
a2enmod rewrite

# add Onrej ppa repo
apt-add-repository ppa:ondrej/php
apt-get update

apt.get install -y php7.2

#php apache mod
apt-get install -y libapache2-mod-php7.2

#restart apache
service apache2 restart

#pahp mods
apt-get install -y php7.2-common
apt-get install -y php7.2-mcrypt
apt-get install -y php7.2-zip

#setup mysql  password the suer is root
debconf-set-selections <<< 'mysql-server mysql-server/root_password password out'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password out'

#install mysql
apt-get install -y mysql-server

#php mysql lib
apt-get install -y php7.2-mysql

#restart apache
sudo service apache2 restart

Virtualization - Vagrant