WordPress.org

Ready to get started?Download WordPress

Forums

wordpress looking of htaccess above domain? (3 posts)

  1. hafman
    Member
    Posted 2 years ago #

    In my permalinks page i have a number of errors and a message about .htaccess being unwriteable

    No surprise as it's looking for it here:
    /var/www/vhosts/.htaccess

    Checked permissions a dozen times, all good, replaced core files, tried no plugins, tried 2011 theme, checked database for said path, contacted hosting. No change...

    The website works fine however so this is merely an annoyance. What could be wrong?

  2. hafman
    Member
    Posted 2 years ago #

    An update to this mystery:

    In Permalinks i set it to default. The message came back "Permalink structure updated" but still with the mass of errors:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/options-permalink.php on line 132
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/options-permalink.php on line 132
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/options-permalink.php on line 132
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/includes/misc.php on line 133
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/includes/misc.php on line 133
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/includes/misc.php on line 133

    I tested the site and there were still pretty links but all going to the wrong pages!

    I restored my custom structure and clicked save, got the errors and this time a warning of htaccess not being writeable. However things were running properly on the site again. Weird.

  3. dpfuhl
    Member
    Posted 2 years ago #

    Got the same issue. Seems it's caused by wrong php include path in servers configuration and should be solved by defining the right path in php.ini. But you need access to servers configuration.

Topic Closed

This topic has been closed to new replies.

About this Topic