LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-18-2009, 06:45 PM   #1
fishdink
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Question Apache and FTP vps to work more like godaddy shared hosting


I have a drupal site on an unmanaged vps running centos 5.3 apache 2.2 mysql 5 and php 5.2 w/ safe mode on.

Apache is running apache:apache
proftpd is running ftp:ftp
ftp user is (changed) myftpuser:myftpuser with home of /var/www/html

When I was using Godaddy shared hosting I just uploaded all my site files with ftp and everything worked fine. Files were all 644 and folders were 755 by default.

Now that I have my own vps with solar vps I can't get my site to run right unless most files and folders are owned by apache, which prevents the ftp user from touching them.

How do I set up apache and ftp to work flawlessly like when I was using godaddy shared hosting. I just want it to work without having to change owner and permissions all the time and use (changed) myftpuser to upload and download all files.
 
Old 06-19-2009, 07:55 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
try making sure that apache user is also a member of the ftp users' group then apache would have read/write/execute access according to whatever default permissions are for the ftp users group membership

I don't remember the command line to add a user to another group but a quick google should reveal that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yikes! My Godaddy VPS is giving me these errors. Can't register, delete domains or kholt Linux - Newbie 1 06-03-2009 08:24 PM
how good is vps hosting? redzip General 1 06-07-2008 08:18 PM
VPS Hosting? paddyjoy Linux - General 4 09-09-2006 04:19 AM
LXer: Vpslink Launches Gentoo Linux VPS Hosting Plans LXer Syndicated Linux News 0 07-15-2006 04:21 AM
Apache Virtual Hosting and FTP Station51 Linux - Networking 3 11-25-2002 06:23 PM


All times are GMT -5. The time now is 03:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration