- Plesk 12.5 for Linux
- Plesk 12.5 for Windows
Note: This article has the reference to the issue with the fix available:
"The default PHP “open_basedir” value was missing from the configuration files."
- Plesk 12.5.30 Update 40 11 July 2016 (Linux)
Unable to upload images for a domain in WordPress at Domains > example.com > WordPress Log In > Media > Add New :
Missing a temporary folder.
The following error is found in domain's log file
Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhosts) in Unknown on line 0\
PHP message: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0\', referer: http://www.example.com/wp-admin/upload.php
parameter is set to default in
Domains > example.com > PHP Settings
parameter is written as follows in
file for a domain:
# grep open_basedir /var/www/vhosts/system/example.com/etc/php.ini
open_basedir = /var/www/vhosts
This is an internal issue with ID #PPPM-4595 , which has been fixed in microupdate #40
Apply the latest Plesk microupdates .
Re-generate PHP configuration files:
2.1 open Tools and Settings > PHP Settings
2.2 open enabled PHP handler
2.3 click OK
2.4 proceed for the rest of enabled PHP handlers