• Hi All,

    I’ve just bought a VPS from webfusion and moving from my shared hosting account to my VPS. I moved the SQL database (no problem) and I copied all the files across from the old account to the new one – couple of changes here and there but I’m having a few issues.

    First one I came into was about exceeding memory limit – which I’ve managed to fix. Currently I’m expeircing a problems when I go to my permalinks page:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/options-permalink.php on line 113
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/options-permalink.php on line 113
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/options-permalink.php on line 113
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 130
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 130
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 130
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 155
    
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/16582393194b94296737aa5.tmp) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 630
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/16582393194b94296737aa5.tmp) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 633
    
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 630
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/var/www/vhosts/dj-for-prom.co.uk/httpdocs:/tmp) in /var/www/vhosts/dj-for-prom.co.uk/httpdocs/wp-admin/includes/misc.php on line 633

    I have already done as requested by wordpress to change the .htaccess file to:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    but this hasn’t helped. As i’m not an expert on PHP but more of a newbiew trying to learn. Could someone please explain what the error is and how I fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘open_basedir restriction in effect’ is closed to new replies.