Question

I just installed nginx and uploaded a php file and I get 403 Forbidden

Posted March 19, 2020 65 views
Nginx

Hi there

I just installed nginx and then uploaded a .php file, I’m now getting 403 Forbidden.

can anyone help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

It sounds like it might be a permissions issue, I would recommend checking your Nginx error log for more information on what the exact issue could be:

  • tail -100 /var/log/nginx/error.log

Feel free to share the log output here so that I could further advise you.

Another thing that you could do is to check this answer here on how to troubleshoot common Nginx problems:

https://www.digitalocean.com/community/questions/how-to-troubleshoot-common-nginx-issues-on-linux-server

Hope that this helps!
Regards,
Bobby

Submit an Answer