Hi I'm a web developer by trade and not a server engineer please bear with me!
I have just got a new Ubuntu LAMP VPS server, which I am trying to configure.
I understand that running php as apache-mod is the fastest way of running php. but to achieve this I have to set my directories to 777 so php can write to them. And in turn ftp can then no longer delete dirs created by php.
This does not seem ideal.
I understand that using fast-cgi the 'php user' and 'ftp user' are the same hence you do not get these issues and do not have to open directories to 777 to allow writing which I understand to be a security issue.
So what are the pros / cons of
- fast-cgi with permission 755 vs apache mod with 777 permissions??
So ok 777 is not good apparently. But how do I then get apache-mod and ftp user to be the same - as mentioned I am not a server admin! thanks