Symptoms
When setting a custom value for the PHP option upload_tmp_dir, the value isn't applying.
Description
The PHP setting "upload_tmp_dir" can only be changed in the context "INI_SYSTEM" configuration file.
This means it has to be directly in a php.ini or httpd.conf. This can be commonly changed via the MultiPHP Manager, as this will modify both user INI_USER and INI_SYSTEM. Depending on how the server is set up, this may need to be configured in different areas or multiple settings to achieve the desired change.
Workaround
For PHP-FPM:
System values such as the upload_tmp_dir must be changed via the user's PHP-FPM pool configuration template.
How to change the PHP upload path when using PHP-FPM
For LiteSpeed:
The value must be changed in the php.ini after editing the LiteSpeed Configuration in the LiteSpeed console to load system values in LiteSpeed per domain. Please take a look at the following article for more information.
cPanel MultiPHP INI Editor Values aren't working when using LiteSpeed
For Apache Mod LSAPI Pro ( CloudLinux ):
In CloudLinux, to use INI files in LSAPI, you need to modify a few settings in the configuration file. The article below provides more details. After applying the LSAPI configuration setting change, the MultiPHP INI Editor will work.
MultiPHP INI Editor not working with Mod_LSAPI
For PHP Selector ( CloudLinux ):
The CloudLinux PHP Selector has a command-line tool to modify settings. You can use the "selectorctl" to modify settings that don't appear in the Selector INI editor interface.
Comments
0 comments
Article is closed for comments.