How to check if Perl script engine is enabled and working for a domain?
To check this we can use a simple script like this:
#!/usr/bin/perl
print “content-type:text/html\n\n”;
print “<html>\n”;
print “<head />\n”;
print “<body>\n”;
print “Hello World!\n”;
print “</body>\n”;
print “</html>\n”;
#
Save the content into a text file and save in the domain web-accessible folder (like $HTTPD_VHOSTS_D/domain.tld/httpdocs) on the server with .pl extension (test.pl for example). Then try to open the file via browser by the http://domain.tld/test.pl URL. The domain name should be resolved for this to work.
The test looks successful if a page shows the “Hello World!” string.
If an error or full script listing is visible, it means that Perl script engine is not configured for the domain properly.
Leave a Reply
You must be logged in to post a comment.