Linux

Test perl script

To check if perl is working on a server: Open a test file, # vi test.pl And enter the following code : #!/usr/bin/perl print “Content-Type: text/htmlnn”; print “<html><body><h1>Perl is working!</h1></body></html>”; Save and browse the file, www.yoursite.com/test.pl (replace yoursite.com with your website name).

Apache * Linux

Testing mod_rewrite

If you face issues in getting rewrite rules of your website to work, first check if mod_rewrite is installed/enabled. # httpd -l | grep rewrite If mod_rewrite is installed on the server, you will get the following output :   mod_rewrite.c If it is not installed, then you will have to recompile apache with mod_rewrite […]