sean335
May 3 2003, 02:11 AM
How can i use perl scripts within any folder on my site without having mod_perl turned on? None of my scripts work with mod_perl, and dechecking mod_perl in the hosting options made all scripts give me a 500 error, even the ones in the cgi-bin. How can i use regular old perl?
Squire
May 5 2003, 07:01 AM
You'll need to uncomment a line in your httpd.conf file Sean.
For standard builds that will be located at /usr/local/psa/apache/conf/httpd.conf
For RPM builds it'll be at /etc/httpd/conf/httpd.conf
First thing, make a back up copy of the Apache config file before you make any changes, so that you have a quick way to get back if something goes terribly wrong. So from your ssh command line cd over to the appropriate directory and type:
cp httpd.conf httpd.conf.bak
Then go into the config file to make one small change...
pico -w httpd.conf
Find a line which says: #AddHandler cgi-script .cgi
Delete the # sign out of there to uncomment it.
Last, you'll need to restart Apache to have the change take effect. From your command line type:
/usr/local/psa/admin/sbin/my_apci_rst
That's it. You're done!
Squire