A very embarressing question - how do I get Apache to pass
perl scripts to perl and not just display them to the browser
When I run from the command line, the Perl scripts works OK.
Script aliases is set (for www.ccp14.ac.uk virtual web server)
Alias /rib/ /usr/local/rib/
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/ccp14/
ScriptAlias /rib/cgi-bin/ /usr/local/rib/cgi-bin/
Following is the header of one of the perl script.
use lib '/usr/local/rib/lib';
# NHSE Repository in a Box (RIB)
I have read up about mod_cgi and adding:
application/x-httpd-cgi in the mime types but am just
confused why perl scripts won't handle by default.
Is it just a matter of adding into mime.types
Or for security - is there more to it?
For initial safety - I am not using mod_perl for the moment.
PS: Not running apache 1.3.0 at the moment as under SGI O2
running IRIX 6.3 - 1.3.0 seems to be a bit flakey in not
starting up (as reported in a previous post).
Lachlan M. D. Cranswick
Collaborative Computational Project No 14 (CCP14)
for Single Crystal and Powder Diffraction
Daresbury Laboratory, Warrington, WA4 4AD U.K
Tel: +44 (0)1925-603703 Fax: +44 (0)1925-603124 Room C14
CCP14 Webpage (Under heavy construction):