apache finding second hard drive

This is a discussion on apache finding second hard drive within the Apache Web Server forums, part of the Web Server and Related Forums category; I installed a second hard drive hdb with hdb1 etc with a mount point inside of my web server root. ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2004
Stuart Miller
 
Posts: n/a
Default apache finding second hard drive

I installed a second hard drive hdb with hdb1 etc with a mount point
inside of my web server root. I had this working fine, until a power failure
disrupted things, and now I can't get it back.

The two vfat partitions are, for example mounted as /webstuff/newfiles1 and
/webstuff/newfiles2
With the second drive unmounted, the directories are owned by root and show
drwxr-xr-x and can be entered by apache. Of course they are empty, but with
indexes enabled I can 'see' them from the client.

When I do mount -a, the mount works, but they show drwxr--r-- and the
client gets error 403 forbidden.
Chmod apparently works chmod a+x newfiles1 gives mode changed to
rwxr-xr-x, but when I do ls-l the permissions did not change and the client
still can't get access.

From what I have done in the past months, it seems to be necessary to have
rwxr-xr-x on any directory so apache can access it. Is this correct?
Is there some way to change the permissions when a drive is mounted?
This is getting to me, because I had it working, and I don't recall having
this problem last week. I did have to change permissions on all the files on
hdb, but that was easily done. The drives are currently mounted rw, and I
verified that I can write to them as root.

Thanks

Stuart






  #2 (permalink)  
Old 08-27-2004
Davide Bianchi
 
Posts: n/a
Default Re: apache finding second hard drive

On 2004-08-27, Stuart Miller <stuart_miller@shaw.ca> wrote:
> When I do mount -a, the mount works, but they show drwxr--r-- and the
> client gets error 403 forbidden.


Fix your /etc/fstab and eventually the permission on /dev/hdb.
This has nothing to do with Apache.

Davide


--
Frobnicate, v.:
To manipulate or adjust, to tweak. Derived from FROBNITZ.
Usually abbreviated to FROB. Thus one has the saying "to frob a
frob". See TWEAK and TWIDDLE. Usage: FROB, TWIDDLE, and TWEAK
sometimes connote points along a continuum. FROB connotes aimless
manipulation; TWIDDLE connotes gross manipulation, often a coarse
search for a proper setting; TWEAK connotes fine-tuning. If someone is
turning a knob on an oscilloscope, then if he's carefully adjusting it
he is probably tweaking it; if he is just turning it but looking at the
screen he is probably twiddling it; but if he's just doing it because
turning a knob is fun, he's frobbing it.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0