Access to context [/] is denied! – Knowledgebase

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

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

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat