Re: Problems with Apache and CGI on OpenBSD3.2
by "Octavian Rasnita" <orasnita(at)home.ro>
|
Date: |
Fri, 20 Dec 2002 19:19:53 +0200 |
To: |
"Paul Smith" <paul.smith(at)inovis.com>, <hwg-servers(at)hwg.org> |
References: |
itlogon |
|
todo: View
Thread,
Original
|
|
The only thing I can think about is a problem with the web server, or ...
try this line instead:
print "Content-type: text/html\n\n";
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: orasnita(at)home.ro
----- Original Message -----
From: "Paul Smith" <paul.smith(at)inovis.com>
To: <hwg-servers(at)hwg.org>
Sent: Friday, December 20, 2002 4:16 PM
Subject: RE: Problems with Apache and CGI on OpenBSD3.2
The problem seems like it has to be with apache, something in httpd.conf or
am I missing some modules? The script executes from the command line,
syntax is ok, and the #!/usr/bin/perl is correct.
> perl -cw first.pl
first.pl syntax OK
> ./first.pl
Content-type: text/html
Hello, World.>
Thanks All!
Paul
> -----Original Message-----
> From: Paul Smith
> Sent: Thursday, December 19, 2002 4:39 PM
> To: 'hwg-servers(at)hwg.org'
> Subject: Problems with Apache and CGI on OpenBSD3.2
>
> Why can't I run http://www.mydomain.com/cgi-bin/first.pl? Every time, I
> get an "Internal Server Error". Below is the script, its permissions, its
> location, my CGI config in httpd.conf, and a list of installed packages.
> There are NO LoadModule or AddModule entries in my httpd.conf file.
> Should there be?
>
> >more first.pl
> #!/usr/bin/perl
> print "Content-type: text/html\r\n\r\n";
> print "Hello, World.";
>
> ls -al first.pl
> -rwxr-xr-x 1 root daemon 80 Dec 19 15:37 first.pl
>
> pwd
> /var/www/cgi-bin
>
> HTTPD.CONF************
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
> <Directory "/var/www/cgi-bin">
> Options +ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> AddHandler cgi-script cgi pl
> **********************
>
> >pkg_info
> bash-1.14.7p1 GNU Bourne Again Shell
> jpeg-6b IJG's JPEG compression utilities
> png-1.2.4 library for manipulating PNG images
> libiconv-1.8 character set conversion library
> gettext-0.10.40 GNU gettext
> gmake-3.79.1 GNU make
> freetype-1.3.1 free and portable TrueType font rendering engine
> gd-1.8.3 graphics library for fast PNG creation
> p5-SNMP_Session-0.92 provides rudimentary access to remote SNMP agents
> mrtg-2.9.12a multi-router traffic grapher
> bind-9.2.1 Berkeley Internet Name Daemon
> openldap-client-2.0.27 Open source LDAP software (client)
> autoconf-2.13 automatically configure source code on many Un*x
> platforms
> mysql-client-3.23.49 multithreaded SQL database (client)
> pcre-3.9 perl-compatible regular expression library
> libtool-1.3.5p3 generic shared library support script
> cyrus-sasl-2.1.7 RFC 2222 SASL (Simple Authentication and Security
> Layer)
> postfix-1.1.11 fast, secure sendmail replacement
> ucd-snmp-4.2.3 extendable SNMP implementation
> solid-pop3d-0.15 flexible POP3 server
> p5-MIME-Base64-2.12 Base64 and Quoted-Printable encodings
> p5-URI-1.19 library to parse Uniform Resource Identifiers
> p5-HTML-Tagset-3.03 data tables useful for parsing HTML
> p5-HTML-Parser-3.26 modules to parse and extract information from HTML
> p5-libnet-1.12 modules for net-based applications
> p5-Digest-MD5-2.16 module to calculate digests
> p5-Crypt-SSLeay-0.45 library to provide LWP https support via OpenSSL
> libghttp-1.0.9 GNOME http client library
> p5-HTTP-GHTTP-1.07 perl interface to the Gnome GHTTP library
> p5-libwww-5.65 library for WWW access in Perl
> p5-Convert-ASN1-0.15 module to encode and decode ASN.1 data structures
> p5-Net-SSLeay-1.19 perl module for using OpenSSL
> p5-IO-Socket-SSL-0.91 perl interface to SSL sockets
> expat-1.95.4 XML 1.0 parser written in C
> p5-XML-Parser-2.31 perl module for parsing XML documents
> p5-ldap-0.26 client interface to LDAP servers
> p5-CGI-2.76 modules for use in writing cgi scripts
> ispell-3.2.06 interactive spelling checker
> openwebmail-1.65 highly configurable webmail client
>
> ________________________
> Paul H. Smith
> Network Engineer, CCNP
> Inovis, Inc.
> 1277 Lenox Park Blvd.
> Atlanta, GA 30319-5396 USA
> PH/FX (404) 467-3315
> mailto:paul.smith(at)inovis.com
> www.inovis.com
>
>
HWG: hwg-servers mailing list archives,
maintained by Webmasters @ IWA