Linux Perl Problem

  • lanceomac
  • Born
  • Born
  • No Avatar
  • Joined: Oct 05, 2005
  • Posts: 2
  • Status: Offline

Post October 5th, 2005, 4:40 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 5th, 2005, 4:40 pm

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post October 6th, 2005, 5:07 am

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. ;)
"It's always a long day, 86,400 won't fit into a short."

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 90 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.