Symptoms
After enabling PHP FPM, applications such as WordPress are not able to write to the /tmp directory.
Description
PHP FPM enables the following configuration which disables writing to /tmp in the normal manner by default:
PrivateTmp=true
Workaround
This can be resolved by uncommenting the sys_temp_dir in the php.ini with the following steps:
1. Login to WHM as the root user
2. Navigate to: Home »Software »MultiPHP INI Editor
3. Click on the Editor Mode tab
4. Select the desired PHP version
5. Locate the sys_temp_dir option and remove the ; so that it is uncommented and is set to /tmp
6. Press the blue save button
7. Restart PHP FPM with the following command via Terminal or SSH:
/scripts/restartsrv_apache_php_fpm --restart