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

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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.
The issue is likely because your files are owned by root. Your nginx process would be running as the user “www-data” and so it would not have the needed access to these files. You can change the ownership of your files using the command:
chown -Rf www-data:www-data /usr/share/nginx/html
Using the path to your web root if it is different from the one shown.
Simply put, you need to have nginx run PHP-FPM.
You can look at how to do that by going to the config part in this how-to:
Basically, the part you want:
user = nginx
group = nginx
restart PHP-FPM, then you can just run this on your folder (Change “/path/to/your/website” to the actual path):
cd /path/to/your/website; find . -type d -print0|xargs -0 chmod 755; find . -type f -print0|xargs -0 chmod 644; chown nginx:nginx * -R