Report this

What is the reason for this report?

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

Posted on March 19, 2020

Hi there

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

can anyone help.



This textbox defaults to using Markdown to format your 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.

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:

  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:

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

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.