vim /opt/coolstack/php5/lib/php.ini
Add:
extension=»zlib.so»
Session Path
warning security breach :p
session.save_path = «/tmp»
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30
max_input_time = 60
memory_limit = 40M
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
Config php.ini solaris
[PHP]
cgi.fix_pathinfo = 1
max_execution_time = 30
max_input_time = 60
memory_limi = 64M ; Maximum amount of memory a script may consume (8MB)
default_socket_timeout = 1800
[Session]
session.use_cookies = 1
session.cookie_lifetime = 0
session.gc_probability = 1
session.gc_divisor = 5000
session.gc_maxlifetime = 6000
session.entropy_file = «/dev/urandom»
;session.cache_expire = 300
;session.cache_limiter = nocache
session.save_handler = files
session.save_path = «/tmp»
include_path=/opt/coolstack/php5/lib/php:.:
extension_dir=/opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613
extension=»mysql.so»
extension=»mysqli.so»
extension=»apc.so»
extension=»zlib.so»
# hardened-php – uncomment to enable. See http://hardened-php.net
#extension=»suhosin.so»
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=120
apc.user_ttl=120
apc.gc_ttl=120
apc.stat=0
apc.num_files_hint=1024
apc.user_entries_hint=100
apc.mmap_file_mask=/dev/zero
;apc.enable_cli=1
; Allow or prevent persistent links.
;mysql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
;mysql.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
;mysql.max_links = -1
bash-3.00# cat /opt/coolstack/php5/lib/php.ini
[PHP]
cgi.fix_pathinfo = 1
max_execution_time = 30
max_input_time = 60
memory_limi = 64M ; Maximum amount of memory a script may consume (8MB)
default_socket_timeout = 1800
[Session]
session.use_cookies = 1
session.cookie_lifetime = 0
session.gc_probability = 1
session.gc_divisor = 5000
session.gc_maxlifetime = 6000
session.entropy_file = «/dev/urandom»
;session.cache_expire = 300
;session.cache_limiter = nocache
session.save_handler = files
session.save_path = «/tmp»
include_path=/opt/coolstack/php5/lib/php:.:
extension_dir=/opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613
extension=»mysql.so»
extension=»mysqli.so»
extension=»apc.so»
extension=»zlib.so»
# hardened-php – uncomment to enable. See http://hardened-php.net
#extension=»suhosin.so»
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=120
apc.user_ttl=120
apc.gc_ttl=120
apc.stat=0
apc.num_files_hint=1024
apc.user_entries_hint=100
apc.mmap_file_mask=/dev/zero
;apc.enable_cli=1
; Allow or prevent persistent links.
;mysql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
;mysql.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
;mysql.max_links = -1