Browse Source

Merge pull request #2106 from joanhey/joanhey-php

PHP optimizations
Nate 9 years ago
parent
commit
d806f50361
1 changed files with 12 additions and 5 deletions
  1. 12 5
      config/php.ini

+ 12 - 5
config/php.ini

@@ -372,7 +372,7 @@ zend.enable_gc = On
 ; threat in any way, but it makes it possible to determine whether you use PHP
 ; threat in any way, but it makes it possible to determine whether you use PHP
 ; on your server or not.
 ; on your server or not.
 ; http://php.net/expose-php
 ; http://php.net/expose-php
-expose_php = On
+expose_php = Off
 
 
 ;;;;;;;;;;;;;;;;;;;
 ;;;;;;;;;;;;;;;;;;;
 ; Resource Limits ;
 ; Resource Limits ;
@@ -1865,10 +1865,17 @@ ldap.max_links = -1
 ; Local Variables:
 ; Local Variables:
 ; tab-width: 4
 ; tab-width: 4
 ; End:
 ; End:
-[apc]
-apc.stat = 0
-apc.enable_cli = 1
-apc.shm_size = 64M
+;[apc]
+;apc.stat = 0
+;apc.enable_cli = 1
+;apc.shm_size = 64M
+
+[opcache]
+opcache.validate_timestamps = 0 ; The same that apc.stat = 0
+;opcache.enable_file_override = 1 ; Faster for some frameworks
+;opcache.save_comments = 0 ; Breaks any fw using annotations comments
+;opcache.fast_shutdown = 1 ; Have problems with some big frameworks
+
 
 
 [yaf]
 [yaf]
 yaf.library =
 yaf.library =