Solved

need to add apache and cgi support

Posted on 2001-08-24
9
335 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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…

867 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

22 Experts available now in Live!

Get 1:1 Help Now