wrknight
New member
I am setting up wordpress on a LEMP stack and my root directory is /var/www/html. According to instructions I simlinked /usr/share/phpmyadm to /var/www/html/phpmyadmin where is shows up. I am workiing on a local network so when I want to acess phpmyadmin I put 127.0.0.1/phpmyadmin in the address bar of my browser and it sends back 403 forbidden. If I remove the simlink, refeshing the browser sends back 404 not found. Replacing the simlink sends back 403 forbidden, so I know the simlink is in the right place.
nginx log reports:
2025/01/31 01:51:31 [error] 38157#38157: *149 directory index of "/var/www/html/phpmyadmin/" is forbidden, client: 127.0.0.1, server: _, request:
I tried setting up a made up domain called site1.com, placed the root directory at /var/www/site1 and simlinked phpmyadmin to that location. This time it came back with 2025/01/31 04:33:52 [error] 40563#40563: *45 directory index of "/var/www/site1/phpmyadmin/" is forbidden, client: 192.168.1.199, server: site1.com,.
Any thoughts on how to fix this?
nginx log reports:
2025/01/31 01:51:31 [error] 38157#38157: *149 directory index of "/var/www/html/phpmyadmin/" is forbidden, client: 127.0.0.1, server: _, request:
I tried setting up a made up domain called site1.com, placed the root directory at /var/www/site1 and simlinked phpmyadmin to that location. This time it came back with 2025/01/31 04:33:52 [error] 40563#40563: *45 directory index of "/var/www/site1/phpmyadmin/" is forbidden, client: 192.168.1.199, server: site1.com,.
Any thoughts on how to fix this?