TSC Support Center

Questions / FAQ

Home : Customer Support Center : FAQ Index

How do I test to see if mod_perl is working on my account?

Create a file named test.pm
or test.pl - both extensions work. Next, insert these lines into the file:

my $r = shift;
$r->print("Hello World!n");

The file needs to be placed inside the perl directory (default location for mod_perl) - or the designated perl directory. chmod test.pm to 755 (either through SSH2 [chmod 755 test.pm] or via a FTP client) and then go to http://yoursite.com/perl/test.pm. If Hello World! is displayed then mod_perl is fully functional.

  The Server Center. All rights reserved. Privacy Policy 

Script provided by SmartCGIs.com