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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |