I have a virtual machine with openSUSE Leap 42.3 and a LAMP stack.
Now I want to set up a CMS called TYPO3. The install tool tells me, that I should change following settings:
- Low PHP script execution time
- PHP max_input_vars is very low
I opened my /etc/php7/cli/php.ini and changed the values. But after restarting the Apache web server, and executing phpinfo();, nothing changes.
This is what phpinfo() tells me:
- Configuration File (php.ini) Path /etc/php7/apache2 Loaded
- Configuration File /etc/php7/apache2/php.ini Scan this directory for
- additional .ini files /etc/php7/conf.d
Are my changes overridden? A system restart did not help.
Advertisement
Answer
The php.ini file in the /cli directory is for the command line interface (CLI). Those changes will not affect if the PHP interpreter is “called by Apache” (or other web servers) in PHP’s default configuration. You have to adjust the apache2/php.ini file. This is also what your phpinfo()
states 😉
Restart PHP and/or Apache (depending on the system you are using) and it should be done.