Forum

hiawatha.conf: No such file or directory

Rene
31 August 2009, 16:48
Hiawatha version: 6.17
Operating System: Windows XP Professional

I unzipped hiawatha-6.17.zip in C:\Rene
I had to adapt the directories in:
- the icon
- the *.bat files
- the httpd.conf

Then I had to change the hiawatha startup, because the conf directory is now in C:\Rene\Hiawatha\config
But when using:
"C:\Rene\Hiawatha\bin\hiawatha.exe" -d -c C:\Rene\Hiawatha\config

The dos-box shows: hiawatha.conf: No such file or directory

Looking in your source, I see hiawatha.conf being mentioned, but in the config directory httpd.conf is being used.
Copying httpd.conf to hiawatha.conf didn't help as well.

How can I use under windows a different config folder?

Regard,
Rene
Justin
3 September 2009, 18:52
Open up Hiawatha.conf and change all the \Program Files\Hiawatha to \Rene\Hiawatha
Hugo Leisink
4 September 2009, 12:00
The Windows version has been compiled to be installed in C:\Program Files\Hiawatha. I have not tested it in another directory.
Wariat
15 October 2009, 12:40
I'm having the same problem, I couldnt get it to work in custom dir (I've changed paths in httpd.conf and Hiawatha.bat) but got error message:

/cygdrive/c/Program Files/Hiawatha/config: No such file or directory

It seems reference to program files is somehow hardcoded.

So then I tried to put everything in default directory as it comes preconfigured, now error is saying:

hiawatha.conf: No such file or directory

Apparently hiawatha.conf is not included in download file. Renaming httpd.conf to hiawatha.conf didnt help, these are different files (I had yet another error messsage Error binding 0.0.0.0:8080)

Any way to solve this? I have only windows machine at disposal, my linux box is held hostage by my girlfriend :/

Many thanks
Hugo Leisink
15 October 2009, 13:12
The configuration file (hiawatha.conf) must be located in C:\Program Files\Hiawatha\config. Is it located there?
Wariat
15 October 2009, 13:24
Thanks Hugo for quick reply.

hiawatha.conf is not included in windows package at all, the only 3 files included in config folder are: index.xslt, mimetype.conf and httpd.conf, please check for yourself. Since posting my previous comment I've downloaded linux package and took hiawatha.conf from there, also I have noticed that you get couple more files there, cgi-wrapper.conf and php-fcgi.conf.

Anyway, with borrowed hiawatha.conf from linux package I have now this error:

Warning: can't chown PID file /cygdrive/c/Program Files/Hiawatha/log/hiawatha.pid. Make sure it's owned by root!
Press Ctrl-C to shutdown the Hiawatha webserver.

I have full admin rights, also not sure if PID file has any use in Windows environment.
Hugo Leisink
15 October 2009, 15:46
There was an error in the zip file. httpd.conf should be hiawatha.conf. I renamed the file inside the zip file. Thanks for letting me know.

The PID file warning can be ignored under Windows. Note that the Windows version of Hiawatha is not production machine ready. Only use it for testing and hobby.
Wariat
15 October 2009, 16:56
Thanks mate, but there still is a problem, a line missing from Binding clause in hiawatha.conf

Interface = 127.0.0.1

Without it spits

Error binding 0.0.0.0:80

Of course no one sane is running webserv on Windows unless has to host ASP site. I'll launch my site in couple of months (hopefully) and want to use something lightweight and secure, Hiawatha seems to be perfect solution. I'll give up now as I cant get it to work in custom location (not in program files) and will come back when I get my linux box back and launch date gets closer to evaluate it.
Hugo Leisink
16 October 2009, 11:38
If you recieve an "Error binding 0.0.0.0:80" error, make sure no other program is already listing to port 80
This topic has been closed.