Page 1 of 1

Website Hosting

Posted: Wed Feb 09, 2011 9:56 pm
by therockr92
Alright, here's the deal: I'm a noob at this but felt extra dangerous tonight ;)
I'm trying to set up my HDA to host websites, but haven't had much luck. I read the wiki on hosting a website, and was able to get to the apache test page, however, that's the best I've gotten. I changed the permissions to my user, hoping it would work, but now I only get an HTTP 500 error whenever I try to add a new web app. Help would be greatly appreciated :D

Re: Website Hosting

Posted: Thu Feb 10, 2011 5:57 am
by bigfoot65
The files in the website directory directory should be owned by apache and not your user. Did you follow the wiki exactly? You need to put a file called index.html in that directory for it to work.

Re: Website Hosting

Posted: Thu Feb 10, 2011 10:25 pm
by therockr92
Got it... it got confusing where at the bottom it says the easiest way is to change ownership to the user...
Now, for the real question: how do I undo this? What is apache's user as far as the system is concerned?

Re: Website Hosting

Posted: Fri Feb 11, 2011 5:48 am
by bigfoot65
No problem, that is understandable. If there is a better way to word it in the wiki, please make the change. We don't want users to be confused on what to do.

As for changing back to apache user, do chown -R apache:users on that directory.

Re: Website Hosting

Posted: Sat Feb 12, 2011 9:14 pm
by therockr92
Here's how I'm trying to do this:
I'm trying to upload websites I have created from iWeb onto the share used for the webapp. When I try to access the page, however, I am directed to the Apache test page. How do I change this? I feel like I'm so close but so far away on this one ;)

Re: Website Hosting

Posted: Sat Feb 12, 2011 9:42 pm
by therockr92
Ok so I got it to work by changing ownership to my user, copying the files, and changing it back to apache. Do I have to do this every time I want to publish a site?