aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorrubencm <rubencm@gmail.com>2019-05-17 20:58:54 +0000
committerrubencm <rubencm@gmail.com>2019-05-17 20:58:54 +0000
commit84ce92896e38ed36d252baac8d8626a956e2b86a (patch)
treed4a6783370cd231914fbe4fdd62dd6f845c7fc77 /vagrant
parentdd3330d7c99011832fe5a058eec8e5c5c3f25782 (diff)
downloadforums-84ce92896e38ed36d252baac8d8626a956e2b86a.tar
forums-84ce92896e38ed36d252baac8d8626a956e2b86a.tar.gz
forums-84ce92896e38ed36d252baac8d8626a956e2b86a.tar.bz2
forums-84ce92896e38ed36d252baac8d8626a956e2b86a.tar.xz
forums-84ce92896e38ed36d252baac8d8626a956e2b86a.zip
[ticket/16057] Enable cgi.fix_pathinfo in php.ini
PHPBB3-16057
Diffstat (limited to 'vagrant')
-rwxr-xr-xvagrant/after.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/vagrant/after.sh b/vagrant/after.sh
index 23eedc4d8e..cebbcd67d3 100755
--- a/vagrant/after.sh
+++ b/vagrant/after.sh
@@ -18,9 +18,6 @@ fi
# Install phpBB
php ${PHPBB_PATH}/phpBB/install/phpbbcli.php install ${PHPBB_INSTALL}
-# Enable mod rewrite
-php ${PHPBB_PATH}/phpBB/bin/phpbbcli.php config:set enable_mod_rewrite 1
-
# Add DEBUG mode to phpBB to remove annoying installer warnings
echo "@define('DEBUG', true);" >> ${PHPBB_CONFIG}
@@ -30,4 +27,10 @@ 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/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/"