Linux Perl Problem

  • lanceomac
  • Born
  • Born
  • lanceomac
  • Posts: 2

Post 3+ Months Ago

I have Redhat 9 with Apache 2, ActivePerl5.8

When i try to load a perl file on the computer via a web brower, it just shows the source code. If i try to view the from a windows machine across the network, it tries to download the file. Anyone know what im doing wrong???


  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2696
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Active State perl on RH?

Curious as to why not just use the perl 5 that is included -- but that is neither here nor there.

If you can run 'perl command' from the CLI, then that's good enough I guess.

In any case, you have to have it enabled to process in your httpd.conf;
You have to add the script-alias directive with the location of the script -- normally cgi-bin someplace. Then you have to AddHandler the extension to the alias, AddHandler cgi-script .cgi .pl
You also need to add +ExecCGI to the Directory directive.

This is all providing you are not trying to run mod_cgi. ;)

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 35 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.