CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
New Linux/Apache user needs help!



Feb 28, 2000, 2:02 AM

Post #1 of 4 (1865 views)
New Linux/Apache user needs help! Can't Post

Hi there!

I am a new Linux user. I have installed Apache.

I am trying to run some Perl/CGI script which i have downloaded on my web server as a learning exercise, but when I try to post a form to the specific .pl script, apache records this error in its error log:

[warn] [client] handler "cgi-bin" not found for: /home/httpd/html/daveweb/cgi-bin/

I know this is probably NOT the right forum to be asking this, but any help would be appreciated (any ideas on where WOULD be a good place to go for apache help would also be appreciated - apart from the apache readme, which I've been over and over and can't seem to get any perl/CGI's working no matter where they are located under the apache hierarechy...)




Feb 27, 2000, 10:31 PM

Post #2 of 4 (1865 views)
Re: New Linux/Apache user needs help! [In reply to] Can't Post

Hi rdtaylor

Looks like you dont have your cgi-bin aliased in the main config file for apache.



Feb 29, 2000, 12:48 AM

Post #3 of 4 (1865 views)
Re: New Linux/Apache user needs help! [In reply to] Can't Post

Many thanks Cure...

I've since learned about the "ScriptAlias" command at the HOW-TO site...

Cheers and thanks for taking the time...

Red Dragon

Mar 18, 2000, 7:15 PM

Post #4 of 4 (1865 views)
Re: New Linux/Apache user needs help! [In reply to] Can't Post

The default installation of apache on any linux system doesn't support cgi of any sort until you make a configuration change in apache's configuration file(s).

Depending on you distrobution it may differ.
What you are looking for will be in either httpd.conf or srm.conf

look for a line that looks like this
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

#AddHandler cgi-script .cgi
#AddHandler cgi-script .pl
remove the # from in front of this(ese), then
save the file and restart apache.

you will need to specify the handler file extension if you plan to use any extension besides .cgi or .pl as they are defined above

You will run into other security issues as well about what directories can run cgi program (perl or otherwise)

the default configuration for apache puts web documents in a directory "htdocs" and cgi programs in "cgi-bin" and cgi programs will only be executed if they are placed in "cgi-bin" or a subdirectory of that or you alter the configuration files again.

More information on using apache as well as other server software under linux can be found at Server


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives