update: cgi-bin

2007-12-25 11:17:00

First of all let me thank the people who took the time to point out the

problem with the cgi issue under Solaris/Apache. I appreciate the

patience and the details provided by the people mentioned below. Again,

I appreciate the help provided by all the people who take the time to

answer Sun Solaris questions in the mailing list. Thanks for the

prompt replies from: Stephen Harris, Sebastian Benoit, Dave McFerren

The solution change your srm.conf file to include:

ScriptAlias /cgi-bin/ /path/to/cgi-bin/ #just uncomment the line

AddHandler cgi-script .cgi .pl #uncommnet the line, add .pl

As for the critics of postings... well shit happens get over it! I read

the postings... there are some of the wall questions. Look if you don't

like what you are reading and you are not contributing any answers to

the list... just keep your comments to yourself.

My question was "What is preventing the execution of the cgi files, the

OS, Apache, or Netscape?!" It seems obvious that this might not be an

appropriate questions for Sun-Managers after the fact! After the

experience of the Sun-Managers list answered the questions and it turns

out to be the software package instead of Solaris, then and only then

can this be considered an inappropriate question. It could have gone

either way... Solaris could have been the problem.

I checked the Apache site for information on configuring cgi prior to

posting. The cgi link on the main page send you to:

www.apache.org/docs/suexec.html which has no information on the

configuration options for the server. If on the other hand you do a

SEARCH for cgi you get 39 links one of which has the information "cgi

path.html". Again this is after the freaking fact!!!

«Ö?

Original Posting:

___________________________________________________________________

Sparc 20, Solaris 2.6, Apache 1.2, Netscape Communicator 4.05:

I have installed Apache (precompiled), the files under

/var/lib/httpd/cgi-bin/ are been displayed by Netscape as opposed to

executed as .cgi or.pl files. The files these permissions:

711 for /var/lib/httpd/cgi-bin/

755 for /var/lib/httpd/htdocs/

644 for /var/lib/httpd/htdocs/index.html (all files here are 644)

I am doing all the testing as root. When looking up the cgi files, I

get the sourcode. I seen this with .Z files under Netscape, Netscape

doesn't know the file type and opens it instead of downloading the

files. What is preventing the execution of the cgi files, the OS,

Apache, or Netscape?!

All documentation on the subject assumes that:

http://servername/cgi-bin/*.cgi, http://servername/cgi-bin/*.pl

are cgi scripts?! Any sugestions would be appreciated.

Carlos

______________________________________________________

Get Your Private, Free Email at http://www.hotmail.com

Comments

Got something to say?

You must be logged in to post a comment.