?
Solved

need to add apache and cgi support

Posted on 2001-08-24
9
Medium Priority
?
343 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 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

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

Kejtar
0
 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 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