Access to context [/] is denied!

While accessing the site, I was getting the error as -
Access to context [/] is denied!

Solution :-

1. Please check the permission of "DocumentRoot" directory and the files on your server and the code in the '.htaccess' file is correct. There should not be below code in .htaccess file -

<Files *.php>
deny from all
</Files>

2. If your server is litespeed server then please try to restart the litespeed, it'll work - /etc/init.d/lsws restart

Was this answer helpful?

 Print this Article

Also Read

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Failed to open dir: Permission denied in /usr/local/lib/php/autoindex/default.php

While accessing the site I was getting error as -'Failed to open dir: Permission denied in...

Server connection timed out - Unable to access website and cPanel

I tried accessing the website and cPanel from my system (local network) but I was getting error...

Can't find disk space in /home directory on the cPanel server.

Before transferring a website from one server to another, I checked disk space of website using...

How to Install cPanel on CentOS 6 or 7?

How to install cPanel on CentOS 6 or 7.  Please note cPanel does not support any other operating...

Powered by WHMCompleteSolution