How to solve the problem that the save_handler modification in the PHP configuration file does not take effect

autoload
Release: 2023-03-09 09:44:01
Original
2152 people have browsed it

How to solve the problem that the save_handler modification in the PHP configuration file does not take effect

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"
Copy after login

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
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template