LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-01-2006, 08:27 PM   #1
mgstrein047
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
problems with multiple hard drives and apache


I was running out of space on my hard drive so I installed a new one. So now I have /home/ on hard drive one and /home2/ being the root of hard drive two.

I want to move the user accounts over to the new drive and make it so that when users are creating user web pages ie /~username that all the content is on the new drive.

Here is the problem. When I switch the users home directory over to /home2/username I am getting forbidden 403 errors.

The file permissions are identical as far as I can tell. I checked by doing an ls -al and comparing the listings. I also matched up the chcon settings as well. When I have the ~username/ going to the exact same setup on /home/username/ it works but when it is /home2/username it doesn't.

I am out of ideas. Can anyone help me out?

Thanks guys

Mike
 
Old 09-02-2006, 12:22 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
cat /etc/passwd

is there a correct path for the user u added ?
 
Old 09-03-2006, 01:50 AM   #3
mgstrein047
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
yeah it looks good.

Another wierd thing came up though. When I changed the document root for the server to point to a place on the new hard drive(/home2/) the user dir on the new drive were accessable and the the ones on the old one were forbidden. I only changed the apache config file and restarted the server. I am using that work around for now, but the problem is still a puzzle to me.
 
Old 09-03-2006, 06:03 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
can you post your httpd.conf for below following

1) virtualhost container for home - 1 user
2) virtualhost container for home2 - 1 user

and both line for that 2 user in /etc/passwd

Last edited by routers; 09-03-2006 at 06:06 AM.
 
  


Reply



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
multiple hard drives jasma12 Linux - General 6 02-06-2006 04:28 PM
Multiple hard drives installation Noido Slackware - Installation 8 04-06-2005 03:04 PM
Multiple Hard Drives TuxFreak Linux - General 3 12-22-2004 12:11 PM
Dual Booting with XP, multiple Hard Drives and LILO problems melliott Linux - General 15 01-21-2004 12:34 PM
multiple hard drives bosewicht Linux - Hardware 4 11-22-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration