Unable to upload images in WordPress: Missing a temporary folder


2016-11-16 12:54:48 UTC


2017-08-16 18:31:52 UTC


Was this article helpful?

Have more questions?

Submit a request

Unable to upload images in WordPress: Missing a temporary folder

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.5 for Windows

Note: This article has the reference to the issue with the fix available:

  • #PPPM-4595 "The default PHP “open_basedir” value was missing from the configuration files."
    Fixed in:
Please consider updating your server:


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 /var/www/vhosts/system/example.com/logs/error.log :

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

open_basedir parameter is set to default in Domains > example.com > PHP Settings :

{WEBSPACEROOT}{/}{:}{TMP}{/} (Default)

open_basedir parameter is written as follows in php.ini 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


  1. Apply the latest Plesk microupdates .

  2. 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

Have more questions? Submit a request
Please sign in to leave a comment.