Solved

need to add apache and cgi support

Posted on 2001-08-24
9
334 Views
Last Modified: 2013-12-15
OK, I need help, I have a laptop which runs linux fine so far, but I need to add two components to it and I am not sure how to proceed.  
I have RH7 and I need to add a webserrver capability to it (APACHE) and cgi module so that I can test some cgi scripts.  
Btw, please make your instructions as detailed as possible.

Thanks all.

Kejtar
0
Comment
Question by:Kejtar
  • 5
  • 4
9 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 250 total points
ID: 6423311
(line numbers are based on Red Hat 7.1, you MIGHT find the lines elsewhere)

Insert CD 1

Issue the command "mount /mnt/cdrom"

Issue the command "rpm -ivh /mnt/cdrom/RedHat/RPMS/apache-*"

Edit /etc/httpd/conf/httpd.conf

If you want to be able to put CGI scripts anywhere add "ExecCGI" to the end of line 442

  (Before)     Options Indexes Includes FollowSymLinks
  (After)     Options Indexes Includes FollowSymLinks ExecCGI

Uncomment line 823

  (Before) #AddHandler cgi-script .cgi
  (After) AddHandler cgi-script .cgi

And that should do it.
0
 
LVL 1

Author Comment

by:Kejtar
ID: 6424045
Don't I need to install CGI first????
Kejtar
0
 
LVL 17

Expert Comment

by:dorward
ID: 6424452
CGI is part of Apache, you still need some script interpreter installed though. Most CGI scripts are written in Perl so you need that installed - however I'd ve pretty surprised if you don't have it installed already.
0
 
LVL 1

Author Comment

by:Kejtar
ID: 6424844
Ok, how do I check for whether I have perl installed or not?

Kejtar
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 17

Expert Comment

by:dorward
ID: 6424863
"rpm -q perl" will output the version of the Perl RPM installed. If it isn't there you can find it on one of the CDs and install it with rpm -ivh perl*rpm
0
 
LVL 1

Author Comment

by:Kejtar
ID: 6425305
ok I checked all the settings, and I am stuck: It works from within the laptop, I can view the sample page and everything, but I can't see it from other computer which is networked to it, anything I can check for?
Kejtar
0
 
LVL 17

Expert Comment

by:dorward
ID: 6425357
You probably selected the firewall when you installed Red Hat. Check that.
0
 
LVL 1

Author Comment

by:Kejtar
ID: 6432252
Thanks, but one last question.... where do I configure cgi????? I keep getting method not allowed on my post scripts.
Kejtar
0
 
LVL 17

Expert Comment

by:dorward
ID: 6433021
You need to edit /etc/httpd/conf/httpd.conf

Try adding this to the section "<Directory "/var/www/html">":


    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

706 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

19 Experts available now in Live!

Get 1:1 Help Now