cant access second hard drive with apache on my Ubuntu 14.04 server
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cant access second hard drive with apache on my Ubuntu 14.04 server
I installed a 3TB storage drive on my Ubuntu 14.04 as im using this as a media server and serving some large files I ran out of space I have mounted it at /media/root/"uuid"/ the issue im having is its restricted access I get the "You don't have permission to access / on this server" msg I have tried to change permissions but this seems to have no effect I think because you cant give public permissions to the media folder.
Q should this be mounted in a diff way or spot for this?
I simply need to server web pages from the /var/www/ of the second storage drive please let me know what you think or if you want more info
thanks
I'm not sure what you are doing. You say you have /var/www on the storage drive and that you have files under /media/root/uuid. What do you have your document root set to in the apache configuration file and who is the owner:group for the /media sub-directory? Did you create the /root sub-directory there? On my Ubuntu, I have sub-directories for users but none for root.
thanks for the reply
so I created the /var/www/ directory on the second hdd I guess this is not set as the document root in apache however I did not think it needed to be if using symlinks but this seemed to not work as well (im new here but I would think I should be able to serve documents from more than one place) I certainly can try to change the apache root if needed as far as owner and permissions I have changed this around a bit a few times never seems to make a diff I have tried chmod with 777 just to test and also set the drive/directory with group www-data, nogroup and other sugestions ive seen on forums I have also unmounted and mounted the drive sevral times in diff spots same affect im sure this is just simple misconfiguration on my part, as far as the question of what im trying to do I simply need to serve my content from a drive that is not the os drive if a document root change is somehow needed im good with that
thanks again for the reply and any advice or support you offer.
ok so I seem to have resolved this issue I know feel kind of dumb but this is what worked for me
I edited fstab to place my new drive mount point as
/dev/sdc1 /var/www/c84ef2b5-9636-42a0-9470-9c3315942a67 ext4 nosuid,uhelper=udisks2,nodev 0 0 I listed this as nobody nogroup for permissions
I then edited apache to document root accordingly and it seemed to serve my pages fine
not sure why it took me 2 months to do this again thank you for your help
I can only assume it was the actual mount point that caused the issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.