Thank John, but it didn't work. My fault was in the sintax as Anthony help me to see.
----- Original Message ----- From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 12:49 AM Subject: Re: CGI in Apache not work > In your httpd.conf file, look for these lines.... > > # To use CGI scripts: > # > AddHandler cgi-script .cgi > > Add ".pl" to the AddHandler line and restart apache.... > > AddHandler cgi-script .cgi .pl > > Manuel Tejada wrote: > > Hi > > I use RedHat 7.2 in a PC workstation not for production, just for homework. > > This is the first time working with Apache. It is working fine with html > > pages, but not with cgi programs. > > I buil the following text cgi program called "mi_cgi.pl" in my home > > directory /home/manuel/ and then copy it to /var/www/cgi-bin : > > > > #! /usr/bin/perl > > print "Content-Type: text\html\r\n\r\n"; > > print "Hola, Manuel."; > > > > When I enter the direction http://localhost/cgi-bin/mi_cgi.pl in Netscape I > > don't see the line "Hola, Manuel", instead of that a windows appear asking > > to save the mi_cgi.pl file in my home directory. This window has the > > following spaces: > > Filter: /home/manuel/*.pl > > Selection: /home/manuel/mi_cgi.pl > > And three buttoms: "Accept", "Filter" and "Cancel" > > > > When I click Accept and then goes to Netscape to try again see the output of > > the cgi program the same window appear again. > > > > I don't know why this is happens. > > When I ejecute the cgi program in command line I get the output, then the > > sintax is OK. > > I gave everyone permission on the file. > > The path to the script interpreter is OK. > > > > What I am doing wrong? > > I will appreciate any help > > > > > > > > > > > > > > > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list