Forum

Only getting 500 - Internal Server Error

Masquerade
20 February 2011, 18:30
Hi, I've compiled Hiawatha 7.4 from the sources for Haiku, no problems encountered during compilation. Compiled it as follows.

autoreconf -vif
./configure --disable-ssl --disable-xslt --disable-monitor --prefix=/boot/home/hiawatha
make && make install

I've done no changes to the config and Hiawatha starts just fine, showing the default index.html, but when i tried to go to http://x.x.x.x/ChangeLog.txt (had already dropped that file into the boot/home/hiawatha/var/www/hiawatha folder where the default index.html is) i get an Internal Server Error. Tried several different filetypes, but it always gives me the same error.

Any idea what might be wrong, any config changes that is nessesary to be made?

I've tested it on 2 different machines but the same error occures.

Hiawatha version: 7.4
Operating System: Haiku Rev. 40551 and Haiku Rev 40357
Samiux
20 February 2011, 20:18
First of all, I have no idea about Haiku. However, I have some experience in Ubuntu Server. I think the configuration of Haiku and Ubuntu are same on Hiawatha.

I have prepared a HOWTO at here [secure-ubuntu-server.blogspot.com]. I hope it may give you some hints.

Samiux
Hugo Leisink
20 February 2011, 21:57
What's in the error logfile?
Masquerade
20 February 2011, 22:46
The error logfile is empty. But the requests are registered in access.log

192.168.50.101|Sun 20 Feb 2011 18:04:27 +0000|500|607||GET /ChangeLog.txt HTTP/1.1|Host: 192.168.50.100|User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13|Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8|Accept-Language: en-us,en;q=0.5|Accept-Encoding: gzip,deflate|Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7|Keep-Alive: 115|Connection: keep-alive|Cache-Control: max-age=0
Masquerade
21 February 2011, 19:35
Hmm, did another build using the --enable-debug option and now it works like a sharm.. (Haiku 40357 in VirtualBox)

I'll test the same build option on real hardware later today and report back, will also do another build in VM without the --enable-debug to see if it still works.

The debug.log is however empty, only logs to be filled with data is access.log and system.log.
Masquerade
22 February 2011, 00:08
After a lot of testing i finally got a clue showing up in error.log

Mon 21 Feb 2011 23:46:32 +0000|192.168.50.101|/boot/home/hiwatha/var/www/hiwatha/index.html|socket error
Hugo Leisink
22 February 2011, 23:32
I don't think the single 'socket error' points to the cause of the error. At the moment, I don't have time to look into this matter. And since no stable release of Haiku has been released yet, the OS is not supported.
Masquerade
25 February 2011, 19:30
This is probably not a Hiawatha related error but a Haiku related error, during some tests i found out that this error only happens on a machine that uses the VIA Rhine network driver in Haiku. Have filed a Haiku bugreport for this error.
This topic has been closed.