Website Hosting

therockr92
Posts: 4
Joined: Wed Feb 09, 2011 9:52 pm

Website Hosting

Postby therockr92 » Wed Feb 09, 2011 9:56 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Website Hosting

Postby bigfoot65 » Thu Feb 10, 2011 5:57 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

therockr92
Posts: 4
Joined: Wed Feb 09, 2011 9:52 pm

Re: Website Hosting

Postby therockr92 » Thu Feb 10, 2011 10:25 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Website Hosting

Postby bigfoot65 » Fri Feb 11, 2011 5:48 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

therockr92
Posts: 4
Joined: Wed Feb 09, 2011 9:52 pm

Re: Website Hosting

Postby therockr92 » Sat Feb 12, 2011 9:14 pm

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

therockr92
Posts: 4
Joined: Wed Feb 09, 2011 9:52 pm

Re: Website Hosting

Postby therockr92 » Sat Feb 12, 2011 9:42 pm

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?

Who is online

Users browsing this forum: No registered users and 9 guests