PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > How to set up simple cgi web
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

How to set up simple cgi web

Réponse
 
LinkBack Outils de la discussion
Vieux 26/01/2008, 10h40   #1
hce
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to set up simple cgi web

Hi,

I thought if I create /www or /etc/www in my debian PC, and add an
index.htm and cgi file to cgi-bin directory, I should be able to
access http://my_ip_address/index.html. But, it did not work. how can
I make that work?

Thank you.

Jim


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 26/01/2008, 11h20   #2
Micaela Gallerini
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up simple cgi web

2008/1/26, hce <webmail.hce@gmail.com>:
> Hi,
>
> I thought if I create /www or /etc/www in my debian PC, and add an
> index.htm and cgi file to cgi-bin directory, I should be able to
> access http://my_ip_address/index.html. But, it did not work. how can
> I make that work?
>
> Thank you.
>


hi,
apache work on var/www not etc/www. Afterwards, you create the directory on

/var/www not in /etc

if you use apache2, you manually set the dir /var/www in:

/etc/apache2/apache2.conf

regards,

--
"In internet reading is equivalent to knowing how to listen in
reality, who knows hear has the keys to many doors"
Rashna
Micaela Gallerini


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 26/01/2008, 18h20   #3
Tzafrir Cohen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up simple cgi web

On Sat, Jan 26, 2008 at 09:33:00PM +1100, hce wrote:
> Hi,
>
> I thought if I create /www or /etc/www in my debian PC, and add an
> index.htm and cgi file to cgi-bin directory, I should be able to
> access http://my_ip_address/index.html. But, it did not work. how can
> I make that work?


By default the web root in Debian is /var/www and the CGI root is
/usr/lib/cgi-bin .

--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 26/01/2008, 18h30   #4
Chris Henry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up simple cgi web

On Jan 26, 2008 6:33 PM, hce <webmail.hce@gmail.com> wrote:
> I thought if I create /www or /etc/www in my debian PC, and add an
> index.htm and cgi file to cgi-bin directory, I should be able to
> access http://my_ip_address/index.html. But, it did not work. how can
> I make that work?
>


Hmm. Shall start from the simplest. Did you install apache web server?
Or is this a just installed Debian (and you have no idea what was
installed). If you didn't, install it first.

$ su
# apt-get install apache2

After that you can follow the others' suggestions. (:

Good luck!
Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 26/01/2008, 23h30   #5
hce
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up simple cgi web

On 1/26/08, Micaela Gallerini <mat.r.gl@gmail.com> wrote:
> 2008/1/26, hce <webmail.hce@gmail.com>:
> > Hi,
> >
> > I thought if I create /www or /etc/www in my debian PC, and add an
> > index.htm and cgi file to cgi-bin directory, I should be able to
> > access http://my_ip_address/index.html. But, it did not work. how can
> > I make that work?
> >
> > Thank you.
> >

>
> hi,
> apache work on var/www not etc/www. Afterwards, you create the directory on
>
> /var/www not in /etc
>
> if you use apache2, you manually set the dir /var/www in:
>
> /etc/apache2/apache2.conf



Sorry for not being clear. I actually did not want to install apache,
I am just doing my program to use freecgi library and want to test the
cgi binary file on my local machine. I was told I could set up a
simple web server to use a browser http://my_ip_address to invoke the
cgi file without installing the apache. Or, is it wrong?

I changed /www to /var/www, but the browser still got an error message
"You tried to access the address http://my_ip_address/, which is
currently unavailable"

Or, I might just be missing the whole point?

Thank you.

Jim


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/01/2008, 00h10   #6
Dave Sherohman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to set up simple cgi web

On Sun, Jan 27, 2008 at 10:22:58AM +1100, hce wrote:
> Sorry for not being clear. I actually did not want to install apache,
> I am just doing my program to use freecgi library and want to test the
> cgi binary file on my local machine. I was told I could set up a
> simple web server to use a browser http://my_ip_address to invoke the
> cgi file without installing the apache. Or, is it wrong?
>
> I changed /www to /var/www, but the browser still got an error message
> "You tried to access the address http://my_ip_address/, which is
> currently unavailable"


This would indicate that you are not running a web server and you can't
serve web pages (CGI or otherwise) without one.

So you'll have to install a web server if you want to do this.

Apache2 is currently the typical web server to use on Debian systems,
so it would be my recommendation, but there are other options if you
have some objection to apache2 in particular, such as aolserver4, boa,
bozohttpd, cherokee, dhttpd, fnord, lighttpd, mathopd, micro-httpd,
mini-httpd, thttpd, tntnet, webfs, or yaws. (Note that I got this list
from some quick apt-cache searches. I am not familiar with any of these
web servers other than apache/apache2 and don't know how well they would
work for your purposes.)

--
I reckon we are now the only monastry ever that had a dungeon stuffed with
sixteen thousand zombies.
- perlmonks.org


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12721 seconds with 14 queries