Help - Search - Members - Calendar
Full Version: using cgi without mod_perl
The Planet Forums > Control Panels > Plesk
sean335
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
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.