Home  >  Article  >  Backend Development  >  403 appears when accessing phpmyadmin under nginx? ? ?

403 appears when accessing phpmyadmin under nginx? ? ?

WBOY
WBOYOriginal
2016-12-01 00:56:432449browse

System: ubuntu1604, PHP7.0, nginx;
After installing phpmyadmin through apt, setting /usr/share/phpmyadmin to link to /var/www/html/phpmyadmin, a 403 appears when accessing localhost/phpmyadmin. Please tell me how to configure it? ? ?

Reply content:

System: ubuntu1604, PHP7.0, nginx;
After installing phpmyadmin through apt, setting /usr/share/phpmyadmin to link to /var/www/html/phpmyadmin, a 403 appears when accessing localhost/phpmyadmin. Please tell me how to configure it? ? ?

Solved, nginx is not configured to parse PHP

403, incorrect permissions

403 means no permission! As for the one that says the file cannot be found, 404 means the file cannot be found!
In addition to permission issues, selinux will also restrict access to files that are not under /var/www/html!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn