aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant')
-rwxr-xr-xvagrant/after.sh23
-rw-r--r--vagrant/bootstrap.yaml6
2 files changed, 15 insertions, 14 deletions
diff --git a/vagrant/after.sh b/vagrant/after.sh
index aadb7e7492..cebbcd67d3 100755
--- a/vagrant/after.sh
+++ b/vagrant/after.sh
@@ -8,26 +8,29 @@ PHPBB_INSTALL="${PHPBB_PATH}/vagrant/phpbb-install-config.yml"
cd ${PHPBB_PATH}/phpBB
php ../composer.phar install
-# Backup current config.php file
+# Backup and remove current config.php file
if [ -e ${PHPBB_CONFIG} ]
then
cp --backup=numbered ${PHPBB_CONFIG} ${PHPBB_CONFIG}.bak
+ rm -rf ${PHPBB_CONFIG}
fi
-# Delete any sqlite db and config file
-rm -rf /tmp/phpbb.sqlite3
-rm -rf ${PHPBB_CONFIG}
-
# Install phpBB
php ${PHPBB_PATH}/phpBB/install/phpbbcli.php install ${PHPBB_INSTALL}
-# Update sqlite db file permissions
-sudo chown -R vagrant /tmp/phpbb.sqlite3
-
# Add DEBUG mode to phpBB to remove annoying installer warnings
-sed -i "$ a @define('DEBUG', true);" ${PHPBB_CONFIG}
+echo "@define('DEBUG', true);" >> ${PHPBB_CONFIG}
+
+# Change environment to development
+sed -i '/^.*PHPBB_ENVIRONMENT.*$/s/production/development/' ${PHPBB_CONFIG}
# Update the PHP memory limits (enough to allow phpunit tests to run)
-sed -i "s/memory_limit = .*/memory_limit = 1024M/" /etc/php5/fpm/php.ini
+sed -i "s/memory_limit = .*/memory_limit = 1024M/" /etc/php/7.2/fpm/php.ini
+
+# Fix for urls with app.php
+sed -i "s/cgi.fix_pathinfo=.*/cgi.fix_pathinfo=1/" /etc/php/7.2/fpm/php.ini
+
+# Restart php-fpm to apply php.ini changes
+systemctl restart php7.2-fpm.service
echo "Your board is ready at http://192.168.10.10/"
diff --git a/vagrant/bootstrap.yaml b/vagrant/bootstrap.yaml
index 1c2b265712..0877c506aa 100644
--- a/vagrant/bootstrap.yaml
+++ b/vagrant/bootstrap.yaml
@@ -14,18 +14,16 @@ keys:
folders:
- map: "."
to: "/home/vagrant/phpbb"
+ php: "7.2"
sites:
- map: phpbb.app
to: "/home/vagrant/phpbb/phpBB"
+ type: apache
databases:
- phpbb
-variables:
- - key: APP_ENV
- value: local
-
# blackfire:
# - id: foo
# token: bar