Solved

cgi + apache

Posted on 2000-03-03
3
430 Views
Last Modified: 2013-11-18
hi

I have a problem regarding apache cgi.
It worked fine, but when I reinstalled RH it does not work any more. The ordenary httm page shows just fine. but my cgi files do not open. They have the right porperties (755). when I try to open a cgi file it say misconfuguration. Does anyone know which configuration it might refer to.

/k
0
Comment
Question by:k061198
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2581160
Check the ScriptAlias definition in your Apache config file and make sure it point to your cgi-bin directory. Also the Directory definiton has to allow the cgi's to be executed. Something like:

<Directory "/opt/Apache/htdocs/mystic/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    Order allow,deny
    Allow from all
</Directory>

 will probably work for you.
0
 
LVL 1

Accepted Solution

by:
Sokka earned 50 total points
ID: 2582067
1. Opne the file /etc/conf/httpd.conf or in /usr/local/apache/conf/httpd.conf

2. Make the follwoing entries :-

AddHandler cgi-script .cgi
                               
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

#
# "/usr/local/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that Configured.
#<Directory "/usr/local/apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>          


3. Surely it has to work out
4. If it is not working try to get RPM installation from rpmfind and install it.
 
0
 

Expert Comment

by:pyugop
ID: 2623171
I had the same problem when upgrading my RedHat. I was doing exacly as Sokka proposed, and it solved the problem.

To a newbie in RedHat, I always suggested to install all packages from the same bundle.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fetching data from Multiple Linux Server using Shell Scripting 55 154
Office 2016 activiation using KMS 2 30
android secure ftp 3 50
number in printf 13 32
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question