403 appears when accessing phpmyadmin under nginx? ? ?

WBOY
Release: 2023-03-02 06:10:02
Original
2448 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template