Welcome Guest, Not a member yet? Register   Sign In
run PHP as domain owner
#1

[eluser]Random dude[/eluser]
I have been told that running PHP as domain owner will allow you to have your folder permissions at 755 and still write to and edit them.

Is there anyway to do this from CI? Or related to CI in someway?

Is running PHP as the domain owner related to running it as a CGI - or is that a completely different subject?

Cheers again,
Nicholas.
#2

[eluser]eoinmcg[/eluser]
assuming your using apache you just need change the user and group. this is how you would do it on linux:
Code:
export APACHE_RUN_USER=eoin
export APACHE_RUN_GROUP=eoin

on a debian based system you'll find this in /etc/apache2/default/envvars

using php-cgi, rather than an apache module, means that php will run as 'user' rather than 'apache'. so this will also achieve the same thing as above.




Theme © iAndrew 2016 - Forum software by © MyBB