[FIXED] Let Apache use /media/htdocs as DocumentRoot

Issues related to applications and software problems
Post Reply
rcktboy
Posts: 3
Joined: 2015/04/24 21:21:03

[FIXED] Let Apache use /media/htdocs as DocumentRoot

Post by rcktboy » 2015/04/24 21:38:18

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
Last edited by rcktboy on 2015/04/25 13:07:25, edited 1 time in total.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Let Apache use /media/htdocs as DocumentRoot

Post by gerald_clark » 2015/04/24 21:49:42

Mount your external drive on /var/www/html and then run "restorecon -r /var/www".

rcktboy
Posts: 3
Joined: 2015/04/24 21:21:03

Re: Let Apache use /media/htdocs as DocumentRoot

Post by rcktboy » 2015/04/24 21:57:54

gerald_clark wrote:Mount your external drive on /var/www/html and then run "restorecon -r /var/www".
How can I mount it like that? (Linux and all the code is new for me)
Also it's not a external drive, it's in the case connected trough SATA

rcktboy
Posts: 3
Joined: 2015/04/24 21:21:03

Re: Let Apache use /media/htdocs as DocumentRoot

Post by rcktboy » 2015/04/25 13:06:56

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 :)

Post Reply