Executing php and editing using ftp

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Executing php and editing using ftp

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post 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
Post Reply