I am running the LEMP Stack on Ubuntu 14.04
I am always getting permission denied whenever my php file is trying to save or upload something. If I chmod the folder to 777 it works but I don’t want to change it to 777. I checked the owner of all the files in my application . It is root / root (owner / group ).
I have the exact same project on a different server with permissions set as 0755 and the owner as 501 / 500 and the application works flawlessly. But I don’t know that the 501 / 500 stands for.
Also I just checked the following for my application:
/usr/share/nginx/html/example1/app/webroot script owner : root script getmyuid : 0 script getmygid : 0
How come the script owner is root and I still get permission denied ?
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.