WordPress open_basedir restriction in effect

by floriankubis

Wer bei der Installation von Updates, Themes oder Plugins für WordPress eine Fehlermeldung wie diese erhält:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp//akismet.zip) is not within the allowed path(s): (/var/www/web4/html/:/var/www/web4/phptmp/:/var/www/web4/files/:/var/www/web4/atd/) in /var/www/web4/html/wp-includes/functions.php on line 2118

Der kann das Problem einfach lösen indem er in die wp-config.php folgenden Eintrag einfügt:

DEFINE(‘WP_TEMP_DIR’, ‘/var/www/web4/phptmp’);

Dabei ist /var/www/web4/phptmp ein Verzeichnis innerhalb des eigenen shared Hosting Accounts.