1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-16 21:58:17 +01:00

[ticket/16057] Enable cgi.fix_pathinfo in php.ini

PHPBB3-16057
This commit is contained in:
rubencm 2019-05-17 20:58:54 +00:00
parent dd3330d7c9
commit 84ce92896e

View File

@ -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/"