This article mainly introduces the solution to php.ini save_handler
modifications that do not take effect.
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 php-fpm.conf sets save_handler, then the configuration of php.ini will not take effect.
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
Recommended: 《2021 PHP interview questions Large summary (collection)》《php video tutorial》
The above is the detailed content of How to solve the problem that the save_handler modification in the PHP configuration file does not take effect. For more information, please follow other related articles on the PHP Chinese website!