diff options
author | rubencm <rubencm@gmail.com> | 2019-05-17 20:58:54 +0000 |
---|---|---|
committer | rubencm <rubencm@gmail.com> | 2019-05-17 20:58:54 +0000 |
commit | 84ce92896e38ed36d252baac8d8626a956e2b86a (patch) | |
tree | d4a6783370cd231914fbe4fdd62dd6f845c7fc77 /vagrant | |
parent | [ticket/16057] Undo composer.json changes (diff) | |
download | phpbb-84ce92896e38ed36d252baac8d8626a956e2b86a.tar.gz phpbb-84ce92896e38ed36d252baac8d8626a956e2b86a.tar.bz2 phpbb-84ce92896e38ed36d252baac8d8626a956e2b86a.zip |
[ticket/16057] Enable cgi.fix_pathinfo in php.ini
PHPBB3-16057
Diffstat (limited to 'vagrant')
-rwxr-xr-x | vagrant/after.sh | 9 |
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/" |