Jump to content

Plesk for Linux – Fixing .htaccess pcfg_openfile error – permission fix


Jopa

Recommended Posts

From /var/www/vhosts/domain.com/statistics/logs/error_log :

 

 

[critical] [client 192.168.0.13] (13)Permission
 
 

 

 

denied: /var/www/vhosts/domain.com/httpdocs/.htaccess pcfg_openfile:
 
 

 

unable to check htaccess file, ensure it is readable

 

You will see Forbidden Error in your browser.

If you check the mentioned location you will notice that .htaccess file is probably not even there. Creating it and giving it the correct permissions won’t help of course.

 

In our case permissions set wrong on the httpdocs / httpsdocs directory itself.

Try this to fix:

 

cd /var/www/vhosts/domain.com/
chmod 755 httpdocs
chmod 755 httpsdocs
 
 

 

You don’t have to set the permissions to 755 as 751 for example will work as well. Play with the permissions on httpdocs to find the suitable solution. :)

Edited by Fearless News
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.