Solved

need to add apache and cgi support

Posted on 2001-08-24
9
337 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to install java on RHEL image on EC2 4 40
Linux script delete files 3 47
How to retrieve remote exit code when using rsh from Linux to Windows ? 13 51
centos commands 6 68
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

840 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