Solved

cgi + apache

Posted on 2000-03-03
3
420 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now