Difference between revisions of "Configfile bootstrap.sh config file"

From rbachwiki
Jump to navigation Jump to search
(Created page with "<pre> #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...")
 
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:


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


#install mysql
#install mysql
Line 41: Line 41:
sudo service apache2 restart
sudo service apache2 restart
</pre>
</pre>
[[Virtualization]] - [[Vagrant]]

Latest revision as of 23:45, 12 February 2019

#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