Link to home
Start Free TrialLog in
Avatar of Kejtar
Kejtar

asked on

need to add apache and cgi support

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
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kejtar
Kejtar

ASKER

Don't I need to install CGI first????
Kejtar
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.
Avatar of Kejtar

ASKER

Ok, how do I check for whether I have perl installed or not?

Kejtar
"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
Avatar of Kejtar

ASKER

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
You probably selected the firewall when you installed Red Hat. Check that.
Avatar of Kejtar

ASKER

Thanks, but one last question.... where do I configure cgi????? I keep getting method not allowed on my post scripts.
Kejtar
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>