Hi,

I just read doc to install and configure Apache.
So I saw that :

The cgi-bin directory is set up to allow the execution of CGI scripts, with
the ExecCGI option. If you need to execute a CGI script in another
directory, you will need to set ExecCGI for that directory. For example, if
your cgi-bin is /var/www/cgi-bin, but you want to execute CGI scripts from
within /home/my_cgi_directory, add an ExecCGI directive to a set of
Directory directives like the following to your httpd.conf file:

<Directory /home/my_cgi_directory>
    Options +ExecCGI
</Directory>


To allow CGI script execution in /home/my_cgi_directory, you will need to
take a few extra steps besides setting ExecCGI. You will also need to have
the AddHandler directive uncommented to identify files with the .cgi
extension as CGI scripts. See the section called AddHandler for instructions
on setting AddHandler.
[http://www.redhat.com/docs/manuals/linux/RHL-7.1-Manual/ref-guide/s1-config
uration-config.html#S2-CONFIGURATION-ADDHANDLER]
 Permissions for CGI scripts, and the entire path to the scripts, must be
set to 0755. Finally, the owner of the script and the owner of the directory
must be the same user.

I don't really understand what you've done right or not but
hopt this help.
SeeYaLater
ism

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Anthony E. Greene
Envoye : jeudi 21 mars 2002 16:15
A : [EMAIL PROTECTED]
Objet : Re: Apache


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Mar 2002, Brandon Caudle wrote:
>I am running Redhat 7.1, with apache 1.3.22
>http://64.130.55.193/server-status for more info.  I can't get cgi scripts
>to work, i can get perl scripts to work, but cgi scripts they return a
>premature end of header, all the perl scripts and all the cgi scripts are
>a+x with the user and group of apache.  Any ideas??

Make sure the CGI scripts generate the Content-Type header, followed by a
blank line. In perl, it would look like this:

  print "Content-Type: text/html\n\n";


Tony
- --
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05      HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]>

iD8DBQE8mfj2pCpg3WyUI50RAotXAKCKBtjhX4ISqyuvmF8PmXV0es1pOACfYTtZ
whi5chNwuIxgBUZnOvydPok=
=YAoh
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to