ImHosted.com FAQ


Match word(s).

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->send_http_header('text/plain');
$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.




© ImHosted.com, All Rights Reserved.


Script provided by SmartCGIs.com