Answer the question
In order to leave comments, you need to log in
Why changes in php.ini don't change the value in phpinfo?
There is a cloud server in Scaleway with Ubuntu 20.04, nginx and php-fpm 7.2. I installed wordpress and a blog theme on it. In the theme settings, it gives a warning about the small value of max_input_vars.
The phpinfo function shows that the php.ini file is located in /etc/php/7.2/fpm/php.ini
Edit the php.in file
and change the value of max_input_vars = 5000
save the file and restart the web server systemctl restart nginx (I also tried restarting the server) and nothing changes. Phpinfo shows that the max_input_vars size is 1000
and also a warning in the theme settings. What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Separate parameters from php.ini can still be set in the FPM pool config (in Ubuntu in the /etc/php/7.4/fpm folder plus the conf.d/ directory in it), in the Apache and .htaccess configs (not relevant for you), and in WordPress itself (wp-config.php - in the form of ini_set). Search with grep.
Assumption. In addition to the global php configuration file, there are also configuration files for each virtual host, which is specified in the settings of this virt. host. And as far as I understand, it is a priority.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question