|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|