Server Error

ricklach
Posts: 19
Joined: Sat Mar 19, 2011 1:53 pm

Server Error

Postby ricklach » Mon Oct 29, 2012 5:03 pm

I am running a website on amahi and everyone can get to the website but when I try to get the site indexed I get the error: Your site's home page returns a status of 500 (Internal server error) instead of 200 (OK). I have looked in the logs under hda and cannot find any errors like the one given. Can you tell me where I might look next or how I might fix this problem.
Rick

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

Re: Server Error

Postby bigfoot65 » Tue Oct 30, 2012 4:56 am

Check the logs directory in the web-app folder for the web site. Also check in /var/logs.
ßîgƒσστ65
Applications Manager

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

ricklach
Posts: 19
Joined: Sat Mar 19, 2011 1:53 pm

Re: Server Error

Postby ricklach » Tue Oct 30, 2012 6:03 pm

Nothing in those two logs that suggest a server error. Any other suggestions?

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

Re: Server Error

Postby bigfoot65 » Tue Oct 30, 2012 7:00 pm

Release/renew IP address for your client machine. That might help. If not, try the network troubleshooter.

http://wiki.amahi.org/index.php/Network_troubleshooting
ßîgƒσστ65
Applications Manager

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

ricklach
Posts: 19
Joined: Sat Mar 19, 2011 1:53 pm

Re: Server Error

Postby ricklach » Wed Oct 31, 2012 11:52 pm

That trouble shooter showed no errors. However, if I am running a webapp website I am getting strange results. I presume in the httpd/conf.d files there should be a ServerAlias www.example.com statement for the web app. When I remove this line from my .conf file it makes no difference and the website is still found. That means that there has to be some other line somewhere that points to the website. The question is where is that other line located. In the same vein, I have a companion website that has no website webapp and a request is directed to that site so there must be a virtual server statement somewhere that I have missed. Any ideas where it might be?

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

Re: Server Error

Postby bigfoot65 » Thu Nov 01, 2012 4:51 am

The web page you have set up I presume was created using the web app option. The web page files are in /var/hda/web-apps/webpage/html location, correct?

If so, the modifying the /etc/httpd/conf.d/####-webpage.conf file is necessary for access outside the network. The ServerAlias would need to be set to username.yourhda.com unless you are using a third-party other dynamic DNS. You also need to restart the web server after making any changes to the .conf file.

Did you follow the wiki guidance?

http://wiki.amahi.org/index.php/Hosting_a_website
ßîgƒσστ65
Applications Manager

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

Who is online

Users browsing this forum: No registered users and 20 guests