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

  • Posted March 19, 2020
  • Nginx

Hi there

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

can anyone help.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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:

  1. 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:

Hope that this helps! Regards, Bobby