LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   No Access to second drive (https://www.linuxquestions.org/questions/linux-server-73/no-access-to-second-drive-911381/)

Adriann 11-01-2011 10:00 PM

No Access to second drive
 
Greetings everyone, I hope is well for you.

I am new to Apache2/lampserver, the OS is Suse 11.4 Apache version is 2.xx. I have a moderate knowledge of web creation, mostly on the winders side of things. My first time setting up a web server; I was surprised the initial setup worked perfectly.

The boot drive has the Suse OS/Lampserver OS about 30 gig in size. It does not have enough room for the web content. The second drive, one terabyte does.

The problem: I can access the second drive and files locally just fine. When I try and access from the web, I get the infamous 404 file not found.

What I have done: changed permissions for all access to secondary drive, the second drive IS mounted via fstab. I've done a fair amount of research on this and still no luck. I am guessing there are settings somewhere that I am not aware of, but without further guidance I'm sorta stuck.

Can someone help to get me unstuck?

Adriann :-)

Linux, the Erector Set of Operating Systems

fukawi1 11-02-2011 12:32 AM

You said you changed the permissions on the new drive, so I would assume it isn't mounted as read only...

Where have you mounted the 2nd drive? It will have to be mounted (or symlinked) within apaches served path (/var/www, /srv/http etc) in order for apache to use it..

In a situation like this, *I* would generally do this:
  • Mount the drive somewhere temporarily
  • Copy all the existing served data across to the new drive, maintaing permissions, directory structure etc
  • Remove the existing served data
  • Edit fstab to mount the new drive, to the existing served directory.
  • Manually mount the new drive to that location


All times are GMT -5. The time now is 08:40 PM.