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 /usr/local/lib/php/autoindex/default.php' with below error logs -
2017-03-26 21:49:51.835 [NOTICE] [local IP address ] [STDERR]
PHP Warning: opendir(/home/cPanel_username/public_html/): failed to open dir: Permission denied in /usr/local/lib/php/autoindex/default.php on line 143
Correct the user permission on '/' partition on server -
The user permission was not set correctly on server. It should be 'drwx--x--x' that is 711. You can set is using below command -
- Login to server using SSH.
- cd / - If there is name to '/' partition on your server then enter the name.
- For example, if the '/' partition name is 'home' then you should enter 'cd /home' and fire below command -
- chmod 711 cPanel_usernameIt fixed my issue and started working!
Was this answer helpful?
I have edited the WordPress site page but it was not reflected on the live site.Solution :-1....
Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...
If your server installed cPanel with CloudLinux and you will see the below error message at...
After updating the Joomla, I was getting Fatal error: Class 'JCache' not found in...
How to Specify the exact time (hour) to run a backup on cPanel server? Solution :- By default,...
Powered by WHMCompleteSolution