This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

PHP run as no one?

Subscribe to PHP run as no one? 3 post(s), 2 voice(s)

 
Avatar streak 9 post(s)

Just a quick question, I was curious to know if PHP is set to run as no one or if it has been compiled to run as a user? Main reason I ask is because I’d like to beable to have my PHP upload to folders and read/write files without having to set the stuff to world writable.

Many thanks for any replies!

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

If you have installed the Stack as a regular user, the efective user will be the same that it was launched the installer. In case you have installed as root user, the user will be “daemon” following the POSIX standards.

I hope it helps.

 
Avatar streak 9 post(s)

That answered my question perfect! Thanks for the quick response!

Forums LAMPStack