Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cgi + apache

Posted on 2000-03-03
3
Medium Priority
?
435 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 100 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

927 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