Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

system info: i have installed XAMPP on my machine having Window XP OS .

also installed Apache2.2,

now, i have created two folders in C:\xampp\htdocs they are php and perl .

these folder contains programs in their respective languages (ie index.php and index.pl respectively)

when i type in browser : http: //localhost:88/php/ the program in index.php gets executed and o/p is displayed in browser

but , when i type: http://localhost:88/perl/ browser displays a blank page

PROBLEM : how to run .pl file in above scenario ?

the code in index.pl

#!/usr/bin/perl
print "<html>";
print "<h2>PERL</h2>";
print "this is text";
print "</html>";
share|improve this question

3 Answers 3

I think you gave us not enough information to properly identify the problem. What is the output of running index.pl outside the browser?

share|improve this answer
    
question is edited to give more info. pls check –  Dexter Mar 24 '10 at 9:06

In your Apache config look for "DirectoryIndex". You will need to add index.pl to the list of files Apache will serve up if none is specified. Reload or restart Apache for the change to take effect.

share|improve this answer
up vote 0 down vote accepted

this question has programmatic answer point is its not serverfault question instead its stack overflow question

see HERE

you'll know what i mean

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.