Auto Index is disabled for the directory, access denied : 403 forbidden

While accessing the directories of website (http://webiste_name/directory_name) getting 403 forbidden error with below error logs -

Auto Index is disabled for [/home/cPanel_username/public_html/directory], access denied

Solution -

1. '.htaccess' issue - 
    # Don't show directory listings for URLs which map to a directory.
       Options -Indexes
I've commented the above code in the .htaccess file and all started working fine.

2. Apache web server issue -

Also, if you're running your website on Apache web server then please make sure the '
Indexes default' option is checked
You can check that from WHM >> Service Configuration »Apache Configuration »Global Configuration >> Directory “/” Options >> Indexes default
 
It fixed my issue! 

Was this answer helpful?

 Print this Article

Also Read

How to manually resend notification to user whose disk quota has exceeded on cPanel server?

There are always instances on the cPanel server where some clients want to temporarily increase...

How to check the PHP version and configuration for your website?

'phpinfo.php' is the file which is used for checking the PHP version and configuration on cPanel...

mod_security rule [Id '-1'] triggered! ModSecurity: Access denied with code 403

While updating the contents in any of the CMS, I was getting a 403 error on the Litespeed server....

How to install MALDET Linux Malware Detect on cPanel Server?

Maldet is a malware detector and scanner for Linux based servers a project designed by R-fx...

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

I was getting below error while accessing phpMyAdmin - Cannot start session without errors,...

Powered by WHMCompleteSolution