Login to the server via SSH as user, then enter the command : # gem install rails -v=2.3.5 With -v option you can specify the rails version you want to install, here in this example it is 2.3.5. Then check the gem list locally, # gem list –local | grep -i rails That will show […]
Month: July 2013
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).
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 […]