Report this

What is the reason for this report?

403 Forbidden nginx/1.6.3 (centos 6.6)

Posted on April 12, 2015

after i installed nginx & php-fpm, i run my website on browser, it showed 403 Forbidden (nginx/1.6.3). Then i check my error log. i showed me error: “…/index.php” is forbidden (13: Permission denied).

After that I changed index.php file to 777 for both root and nginx user but it always show forbidden error.

Could you please help me to explain how should i check? Thanks



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.

Can you paste your config and file structure?

Did you change the permissions for the right file?

Hi, I found the way to fix. Thanks for your response.

Here’re solution for me: sudo chown nginx:nginx * -R sudo usermod -a -G nginx nginx

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.