User avatar
ReadiesCards
Posts: 40
Joined: Sun May 13, 2012 5:22 am

How do I setup a mini-httpd webserver?

Fri Dec 14, 2012 7:32 am

From this month's 'The MagPi' I have learnt of the existance of mini-http

But I can't get it to work and would appreciate some advice. Here is what I have done so far (using latest Raspbian “wheezy”:

Installed mini-http:
$ sudo apt-get install mini-httpd

Questions:
* is there a good reference for mini-httpd (I came across many but could not work out which was the ultimate reference)
* how do I start it
* how do I make it auto-run on boot up
* do I need to make a log file directory for it (one Google search suggested so) if so where (or is it auto created)
* if I want to run it as root (!) to allow cgi access to GPIO how do I do that
* where should I put my html files

Any advice most welcome
Paul

User avatar
ReadiesCards
Posts: 40
Joined: Sun May 13, 2012 5:22 am

Re: How do I setup a mini-httpd webserver?

Fri Dec 14, 2012 5:57 pm

Should I ask this in a different forum section, if so which?
Paul

bgirardot
Posts: 517
Joined: Wed Oct 10, 2012 6:20 am
Location: Switzerland

Re: How do I setup a mini-httpd webserver?

Fri Dec 14, 2012 6:34 pm

1. It does not look like the author provides much documentation beyond the man page so anything you find on the web is probably fine to go by. But you can:

Code: Select all

man mini-httpd
to see the documentation the author provides.

2. The debian service manager can start/stop the server:

Code: Select all

sudo service mini-httpd start
3. Looks like it will auto run on system start by default.

4. Looks like it logs to the standard place by default: /var/log/mini-httpd.log

5. Edit /etc/mini-httpd.conf

6. /usr/share/mini-httpd/html by default

You will need to read and edit:

/etc/mini-httpd.conf
/etc/default/mini-httpd

before the server will run.

Hope that helps some. Cheers.

User avatar
ReadiesCards
Posts: 40
Joined: Sun May 13, 2012 5:22 am

Re: How do I setup a mini-httpd webserver?

Sat Dec 15, 2012 7:11 am

Thank you!

That was exactly the information I needed I.e. how to start it.

Return to “Beginners”