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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.