Perl program not getting executed in xampp
Posted
by
user1867151
on Super User
See other posts from Super User
or by user1867151
Published on 2012-12-10T03:36:16Z
Indexed on
2012/12/14
5:08 UTC
Read the original article
Hit count: 345
perl
I am very new to CGI programming in Perl.
In order to learn it i installed xampp 2 days back. But I am unable to execute my perl code . The code goes as folows:
#!/usr/bin/perl
use CGI;
$co = new CGI;
print $co->header,
$co->start_html(title=>'CGI Example'),
$co->center($co->hi('Subhayan welcome to CGI')),
$co->end_html;
Have saved the code in a text file named : Subhayan1.cgi and kept it in the folder cgi-bin under xampp folder in C drive.
When i try to execute this through my web browser typing : "http://localhost/cgi-bin/Subhayan1.cgi" it comes up with a "Object not found page".
I checked the apache configuration file under : xampp/apache/conf/httpd.conf.
I checked the entry : ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
It looks like pointing to the correct directory.
What is the issue here can anyone help please???
© Super User or respective owner