Hi,
Today I decided to switch from windows to CentOS for hosting my home server.
I had some small problems, but now I'm stuck.
My host data is on a second HDD (/media/htdocs/www/)
For the last 3 hours I have been trying to get /media/htdocs/www/cloud (root of my owncloud) as DocumentRoot in it's vhost.
but it keeps failing. (does not exist)
I googled and tryed some stuff.
Now I hope that someone can help me on how set the .conf files and how to make sure that the folders have the correct permissions.
All help is welcome.
Thanks,
RcktBOY
[FIXED] Let Apache use /media/htdocs as DocumentRoot
[FIXED] Let Apache use /media/htdocs as DocumentRoot
Last edited by rcktboy on 2015/04/25 13:07:25, edited 1 time in total.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Let Apache use /media/htdocs as DocumentRoot
Mount your external drive on /var/www/html and then run "restorecon -r /var/www".
Re: Let Apache use /media/htdocs as DocumentRoot
How can I mount it like that? (Linux and all the code is new for me)gerald_clark wrote:Mount your external drive on /var/www/html and then run "restorecon -r /var/www".
Also it's not a external drive, it's in the case connected trough SATA
Re: Let Apache use /media/htdocs as DocumentRoot
Thank god for google!
After about 9 hours of small and bigger problems I got everything working.
Up side is, no data loss and pages/cloud system load faster.
Mission complete
After about 9 hours of small and bigger problems I got everything working.
Up side is, no data loss and pages/cloud system load faster.
Mission complete