mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15924] Install apc via pecl and remove nginx config check
PHPBB3-15924
This commit is contained in:
parent
444e5e6498
commit
bdf9af0abb
2 changed files with 1 additions and 2 deletions
|
@ -46,7 +46,7 @@ php_ini_file=$(find_php_ini)
|
||||||
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ]
|
if [ `php -r "echo (int) version_compare(PHP_VERSION, '5.5.0-dev', '<');"` == "1" ]
|
||||||
then
|
then
|
||||||
echo 'Enabling APC PHP extension'
|
echo 'Enabling APC PHP extension'
|
||||||
register_php_extension 'apc' "$php_ini_file"
|
printf "\n" | pecl install apc
|
||||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||||
else
|
else
|
||||||
echo 'Disabling Opcache'
|
echo 'Disabling Opcache'
|
||||||
|
|
|
@ -54,5 +54,4 @@ cat $DIR/../phpBB/docs/nginx.sample.conf \
|
||||||
| sudo tee $NGINX_SITE_CONF
|
| sudo tee $NGINX_SITE_CONF
|
||||||
sudo sed -i "s/user www-data;/user $USER;/g" $NGINX_CONF
|
sudo sed -i "s/user www-data;/user $USER;/g" $NGINX_CONF
|
||||||
|
|
||||||
sudo nginx -t
|
|
||||||
sudo service nginx start
|
sudo service nginx start
|
||||||
|
|
Loading…
Add table
Reference in a new issue