Hi, I am creating a folder through php code. but the permissions for that folder is not setting. I identified the problem is apache is different user group,FTP is different user group. so i want to know how can i change user group of apache. or how can i add apache &php in root access.
You can change the user/group that Apache runs under by editing the httpd.conf file. You should see lines that say something like:
User www Group www
Hi, currently my httpd.conf is looks like User apache Group apache
so i need to change User www Group www
Is it right. Also it's possible to change this one through PHP code. or .htacesss file
bala_god wrote:Is it right.
Is it right.
I don't know... depends how your server is set up.
bala_god wrote:Also it's possible to change this one through PHP code. or .htacesss file
Also it's possible to change this one through PHP code. or .htacesss file
No... you're modifying the way the Apache process starts up... that'd be a bit of a security problem if you could change it in one of those places, don't you think?
Okay. Anyone knows,Is it possible to get available user,group,owner details in (Linux server ) through php