Solved

need to add apache and cgi support

Posted on 2001-08-24
9
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

691 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