Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 24, 2012 12:37 am 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
Dear all,

I run Apache (and the whole LAPM stack) on our Linode server which runs CentOS 6 .

I am hosting multiple sites there with Apache virtual hosts and I have created FTP users for each of the sites.

The issue I am now faced with is that the FTP users are not able to upload files.

I have made the files in the vhosts folder (each representing a different website) to be owned by the apache user and the apache group.

Is this the right approach?

Which user is supposed to own the files in the Apache folder?

I would appreciate any response to this issue that would be of any help.

Thanks.


Top
   
PostPosted: Sat Aug 25, 2012 12:06 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Apache needs to be able to read the files. In addition, your users need to be able to write files in their directories.

In the simple case, your directories can be owned by the user/group that the files are coming from, and they and the files within can be readable by all.

It is generally a bad idea for Apache to be able to write files, as this can allow security exploits through the web server. However, if your web application has some sort of built-in cache or allows file uploads, those specific directories would need to be writable by Apache.

Things get more complex if you wish to prevent users from seeing each others' files.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group