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 usergroup,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.

Regards
Bala

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 usergroup,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.

Regards
Bala

Do you have root access?

If so you can use chown to change the ownership the file to the one you need (such as your ftp user).
http://en.wikipedia.org/wiki/Chown

If you don't, you might want to consider using an ftp client written in PHP to create directories/files for you, with your ftp user. This way you can then access it via ftp yourself.
http://www.radinks.net/ftp/php/

Thanks for the links i will try with ftp class files.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.