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 11-01-2011, 10:00 PM   #1
Adriann
Member
 
Registered: Sep 2003
Location: St. Paul Mn
Distribution: OpenSuse 13.1 AND Win 10
Posts: 76

Rep: Reputation: 18
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
 
Old 11-02-2011, 12:32 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
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
 
  


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
[SOLVED] Hardware crash,Repaired,New Install New Hard drive,how to access original Hard drive flatstan Linux - Hardware 7 07-21-2009 06:51 PM
How to access Access root(/) hard drive attached in Windows XP machine farrukhndm Linux - Software 2 07-29-2008 12:52 PM
two hard drive two distributions how can i access the other drive timbo1 Linux - Hardware 4 10-29-2007 06:35 AM
So now how do I access my CD drive? demosthenes2 DamnSmallLinux 2 10-15-2005 10:14 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM

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

All times are GMT -5. The time now is 04:26 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