LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2002, 03:55 PM   #1
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Rep: Reputation: 15
Enabling CGI in Apache


I have recently been attempting to get cgi working on my Apache server. I added some lines to the httpd.conf and access.conf files.

In httpd.conf:
"ScriptAlias /cgi-bin/ /var/www/cgi-bin"
"AddHandle cgi-bin .cgi"

In access.conf:
"<Directory /var/www/cgi-bin>
AllowOverride None
Options None
</Directory>"

These lines had to be added manually. The httpd.conf lines were added manually because when added in netconf, they were added before the necessary modules were imported and caused syntax error.

Now, most of the problem is fixed, except when I link to a script, it displays the script in the browser window instead of the printed html.

Any help would be greatly appreciated.
 
Old 07-19-2002, 05:11 PM   #2
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
An update to my problem:

I now do not see the script in the browser, but get the following error:
"The server has encountered an internal error or misconfiguration and was unable to complete your request."

I checked the script, and there is no syntax errors, the shebang line is correct (#!usr/bin/perl) and the permissions are set to all can execute.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
enabling ssl in apache for imp linuxnube Linux - Software 1 12-29-2003 11:12 AM
Enabling CGI and Perl on Apache 2.0.47 666Snake666 Linux - Newbie 1 09-17-2003 01:20 PM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 01:03 PM
apache-cgi j-ray Linux - Software 1 12-12-2002 03:31 PM
About cgi , pl. in apache.... raymond Linux - General 1 11-11-2002 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration