Operating System - HP-UX
1758575 Members
2028 Online
108872 Solutions
New Discussion юеВ

CGI does'nt work under Apache 2.0.46, but does under Netscape.

 
Richard Schafer
Occasional Contributor

CGI does'nt work under Apache 2.0.46, but does under Netscape.

I have a piece of code that is working under iPlanet and is not totally working under Apache. When the CGI file is executed it builds a form with a dropdown box. I select the release name from the dropdown, when it executes "onChange" and posts the selected release name back to itself. The result should be data populating another box on the html form. It appears that the problem is with the $release_name = param("rel2"); statement. The port has the data however when the program gets it rel2 appears blank.
Any thoughts?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: CGI does'nt work under Apache 2.0.46, but does under Netscape.

Check the location of cgi-bin and cgi scripts in httpd.conf

That probably under /opt/hpapache2/conf dir.


Search the file for cgi

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: CGI does'nt work under Apache 2.0.46, but does under Netscape.

If you find a discrepency in my earlier post, you will need to restart the httpd server.

/sbin/init.d/hpapache2 stop
/sbin/init.d/hpapache2 start

Doh!

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Richard Schafer
Occasional Contributor

Re: CGI does'nt work under Apache 2.0.46, but does under Netscape.

here is the conf file section:

DocumentRoot /opt/lptools/docmd/
ServerName lpdev:1688
Alias /rapid_html /opt/lptools/docmd/html
Alias /elib /opt/lptools/elib/html
ScriptAlias /cgi-bin/rapid/ /opt/lptools/docmd/cgi/

AddHandler cgi-script cgi
AddHandler perl-script pl
SetHandler cgi-script

Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch

ScriptLog /tmp/cgilog
Richard Schafer
Occasional Contributor

Re: CGI does'nt work under Apache 2.0.46, but does under Netscape.

I also restart the server everytime I change the code in the .cgi file. Again this all works under netscape. How can I access the Apache param hash table to see if the passing params are in there?