Skip to content

Commit

Permalink
OPcache
Browse files Browse the repository at this point in the history
  • Loading branch information
licunchang committed Oct 31, 2013
1 parent 5d146cd commit a0c241c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shell/lnmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ php::install() {
sed -i 's#^expose_php = On#expose_php = Off#' /usr/local/php/etc/php.ini
sed -i 's#^session.name = PHPSESSID#session.name = JSESSIONID#' /usr/local/php/etc/php.ini
sed -i 's#^;session.save_path#session.save_path#' /usr/local/php/etc/php.ini


# [opcache]
sed -i 's#^;opcache.enable=0#opcache.enable=1#' /usr/local/php/etc/php.ini
sed -i 's#^;opcache.enable_cli=0#opcache.enable_cli=1#' /usr/local/php/etc/php.ini
sed -i "/^\[opcache\]/a\zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/opcache.so" /usr/local/php/etc/php.ini

cp -f /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf

# vi /etc/php/php-fpm.conf
Expand Down

0 comments on commit a0c241c

Please sign in to comment.