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 index.pl from a windows machine across the network, it tries to download the index.pl file. Anyone know what im doing wrong???

Thanks,

Casey
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • 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 70 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-2014. Ozzu® is a registered trademark of Unmelted, LLC.