Updated Vagrant box to Ubuntu 18.04 with PHP 7.2 etc (#176) (#230)

This commit is contained in:
Nazar Holubovskyy 2020-09-06 13:54:51 +01:00 committed by GitHub
parent 6c12534a70
commit e319588b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

2
Vagrantfile vendored
View File

@ -41,7 +41,7 @@ end
# vagrant configurate # vagrant configurate
Vagrant.configure(2) do |config| Vagrant.configure(2) do |config|
# select the box # select the box
config.vm.box = 'bento/ubuntu-16.04' config.vm.box = 'bento/ubuntu-18.04'
# should we ask about box updates? # should we ask about box updates?
config.vm.box_check_update = options['box_check_update'] config.vm.box_check_update = options['box_check_update']

View File

@ -28,7 +28,7 @@ server {
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_pass 127.0.0.1:9000; #fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
try_files $uri =404; try_files $uri =404;
} }

View File

@ -13,6 +13,6 @@ function info {
info "Provision-script user: `whoami`" info "Provision-script user: `whoami`"
info "Restart web-stack" info "Restart web-stack"
service php7.0-fpm restart service php7.2-fpm restart
service nginx restart service nginx restart
service mysql restart service mysql restart

View File

@ -35,7 +35,7 @@ apt-get update
apt-get upgrade -y apt-get upgrade -y
info "Install additional software" info "Install additional software"
apt-get install -y php7.0-curl php7.0-cli php7.0-intl php7.0-mysqlnd php7.0-gd php7.0-fpm php7.0-mbstring php7.0-xml unzip nginx mariadb-server-10.0 php.xdebug apt-get install -y php7.2-curl php7.2-cli php7.2-intl php7.2-mysqlnd php7.2-gd php7.2-fpm php7.2-mbstring php7.2-xml unzip nginx mariadb-server-10.1 php.xdebug
info "Configure MySQL" info "Configure MySQL"
sed -i 's/.*bind-address.*/bind-address = 0.0.0.0/' /etc/mysql/mariadb.conf.d/50-server.cnf sed -i 's/.*bind-address.*/bind-address = 0.0.0.0/' /etc/mysql/mariadb.conf.d/50-server.cnf
@ -46,10 +46,10 @@ mysql <<< 'FLUSH PRIVILEGES'
echo "Done!" echo "Done!"
info "Configure PHP-FPM" info "Configure PHP-FPM"
sed -i 's/user = www-data/user = vagrant/g' /etc/php/7.0/fpm/pool.d/www.conf sed -i 's/user = www-data/user = vagrant/g' /etc/php/7.2/fpm/pool.d/www.conf
sed -i 's/group = www-data/group = vagrant/g' /etc/php/7.0/fpm/pool.d/www.conf sed -i 's/group = www-data/group = vagrant/g' /etc/php/7.2/fpm/pool.d/www.conf
sed -i 's/owner = www-data/owner = vagrant/g' /etc/php/7.0/fpm/pool.d/www.conf sed -i 's/owner = www-data/owner = vagrant/g' /etc/php/7.2/fpm/pool.d/www.conf
cat << EOF > /etc/php/7.0/mods-available/xdebug.ini cat << EOF > /etc/php/7.2/mods-available/xdebug.ini
zend_extension=xdebug.so zend_extension=xdebug.so
xdebug.remote_enable=1 xdebug.remote_enable=1
xdebug.remote_connect_back=1 xdebug.remote_connect_back=1