This article mainly introduces php. the inisave_handler modification does not take effect. For more information, see php5.3.3. php-fpm has not been included in php. in ini, php5.3.3 and later, except for php. in addition to the ini configuration, you can also configure in the php-fpm.conf.
If it can be configured in multiple locations, there will be a priority. The php-fpm.conf priority is higher than php. ini.
1, modify/etc/php-fpm.conf, or,/etc/php-fpm.d/*. conf, or,/usr/local/php/etc/php-fpm.conf
; Set session path to a directory owned by process user ;php_value[session.save_handler] = files ;php_value[session.save_path] = /var/lib/php/session php_value[session.save_handler] = redis php_value[session.save_path] = "tcp://127.0.0.1:6379"
If the php-fpm.conf is configured with save_handler, the configuration of php. ini does not work.
2. php-fpm becomes a built-in process
[root@localhost workspace]# php-fpm -v PHP 5.3.3 (fpm-fcgi) (built: Dec 11 2013 03:32:01) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies [root@localhost workspace]# php-cgi -v PHP 5.3.3 (cgi-fcgi) (built: Dec 11 2013 03:28:11) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies