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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
Ok, how do I check for whether I have perl installed or not?
Kejtar
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
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
Kejtar
You probably selected the firewall when you installed Red Hat. Check that.
ASKER
Thanks, but one last question.... where do I configure cgi????? I keep getting method not allowed on my post scripts.
Kejtar
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>
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>
ASKER
Kejtar