Error “Access to context [/] is denied!”

kumkumsharma

Administrator
Staff member
If you are getting “Access to context [/] is denied!" error while accessing the website then you can solve this issue by following below steps:
  • First you have to check the permission of root folder, folder permission should be correct. Your folder permission should be 755. If you have check that permission is correct and you are still getting the issue then check your .htaccess file. .htaccess file should not contain below code.
Code:
<Files *.php>
deny from all
</Files>
Meaning of this code is you have disabled access of your website.
  • If you are using litespeed server then you can try to restart your server with below command and it will work.
Code:
/etc/init.d/lsws restart
 
Top