Page 1 of 1

Executing php and editing using ftp

Posted: Fri May 25, 2007 4:42 am
by raghavan20
hello all. i have always come across this problem. i will explain as much possible to get a permanent solution from you guys.

we have a development server, fedora 5. there will be one or more developers working on the same machine on same or different applications. All the applications which are mainly in php should be executable by apache; also, the applications should be editable from ftp through editors such as dreamweaver, zend, etc. Also, as you would be knowing, not really i want files and services to run from root as they may delete something.

fyi: proftpd is the ftp server; httpd is the web server; scripts in php 5

i have full permissions on the server so i would try your procedure which may involve creating, modifitying users, groups & permissions. So, what should I do with the following..

1. httpd
2. ftp
3. files

Posted: Fri May 25, 2007 8:10 am
by feyd
Do not under any circumstance run them as root. Properly set up a user to have permission to delete files in the given path (and only that path.)

Make sure the FTP user and HTTP user share groups and you should be fine.

Posted: Fri May 25, 2007 8:20 am
by raghavan20
so lets say if i have something like this will it work?
developers: rag, mike
new group: developers
add members to group developers: rag & mike in developers


httpd(/etc/httpd/conf/httpd.conf): user-nobody group-developers

ftp(/etc/proftpd.conf): user-nobody group-developers

files(ex: /var/www/html): user-nobody group-developers
files permission: 774

i tried something like this, it did not work from ftp side (editing was disallowed)

Thanks feyd, Rag