ghttpd what can it do ?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

ghttpd what can it do ?

#1 Post by klhrevolutionist »

I know that it is a great little server, that "just" works.

But snooping into the folder I see a folder named cgi-bin.
What is cgi ? And what all can this little server really do ?
I think that it maybe more powerful than what I have used it for.
But when I use it people complain it is slow, anyway to speed it up ? Give your input & questions as well. thanks pups.
Heaven is on the way, until then let's get the truth out!

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

it's basically a web page server

any web pages in /root/ghttpd/htdocs can be seen on the internet (if the port it is using is open and not blocked by a firewall ... the default port is port 80, change that in /root/ghttpd/httpd.cfg if you like)

for some reason, the default web pages that were in the htdocs folder are missing in Puppy 1.0.7 ... i don't know why, maybe it's a bug
http://www.murga.org/~puppy/viewtopic.php?t=4986
or maybe the default httpd web page is supposed to be in the quisp package

the default web page had links for cgi demos that used the quisp database ... like mysql

if you install the quisp pupget package, it will probably work ... there should be a Quisp item in the menu after installing the package

you don't have to install quisp to use the web server ... you can put any web pages in htdocs ... people looking at your ip automatically will see an html file called index.htm or index.html if there is one ... if you have any files in htdocs (or symlinks to files), they can download them from you ... for example, if you put a folder called files (or anything you want to name it), they can see a list if all the files in the files folder if they look at that folder in your server, for example, by clicking something like:
http://127.0.0.1/files/
(change 127.0.0.1 to your actual ip address, of course)

menno
Posts: 80
Joined: Thu 03 Nov 2005, 23:21
Location: Bedum (Nederland)
Contact:

#3 Post by menno »

cgi = common gateway interface . It give a lot of envirement variables in wich a lot of the http protocoll variable are .

From a older forum (search for ghttpd) you find this .
When you run a script this should be in cgi-bin . But if the script call's a other one your directory is not cgi-bin but one level lower . A other fact is that you cann't have a directory under cgi-bin with scripts . They wouldn't work .

This is why the database.cgi not works , change the call quisp ... to quisp/quisp .. wil do the trick . After executing database.cgi the directory has become .../ghttpd and not .../ghttpd/cgi-bin as you exspected .

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

#4 Post by gliezl »

I used this cute program for file sharing. that's it! Afterwards i kill the process when not in used. :-)
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

User avatar
Yaverot
Posts: 94
Joined: Thu 22 Dec 2005, 03:23
Contact:

#5 Post by Yaverot »

I'm thinking of putting a more robust wiki into my puppy. (Didiwiki is okay for personal use, but it doesn't have the orginization features I want)

Will ghttpd work with a more advanced wiki? Or will i need to install apache?

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#6 Post by Nathan F »

Will ghttpd work with a more advanced wiki? Or will i need to install apache?
Most wiki software runs using php and mysql. You can use any server that will work with them, so there are other options besides Apache, but I'm pretty sure ghttpd won't be the best choice. I'd say your best bet would be a package like Xampp that includes everything already. That's actually what I just installed on my own server and it's working fine for me, although I'm pretty green at setting up the databases.

Nathan

Post Reply