Yesterday set up Nginx front-end agent Apache, today access phpMyAdmin 403 Forbidden Error 1: The reason for this error may be that the owner of the directory does not write permission, at this time, the chmod 777 directory name can be completely open permissions, if the problem is resolved, Is slowly narrowing the access rights.
2: I immediately chmod-r 777/home/www/phpmyadmin, and then to perform http://xx.xx.xx.136/phpmyadmin, or 403 Forbidden error. Directory permissions have been completely developed, how still do not have permission ah, in a foreign post found a solution, the original is phpMyAdmin folder under the default to perform index.php, while in/usr/local/etc/nginx/ Index.php is not performed by default in nginx.conf, the default section is as follows:
location/phpmyadmin/{ alias/home/www/phpmyadmin/; } |
Just change it to the following:
location/phpmyadmin/{ alias/home/www/phpmyadmin/; Index index.php; } |
Of course, reboot the Nginx server.
Then access to the page is normal, there will be no 403 Forbidden error. Everything's fine.