Problem With Solutions

Something Different In Linux

Home » 2010 » November

restart Ruby On Rails application

Posted by Rishikesh Vispute Categories: ruby and rails

If you want to restart Ruby On Rails application for a particular domain or Application then follow the steps : ======================================== root@server[#] cd /home/username root@server[#] cd rails_apps root@server[#] cd demo (Application name) root@server[#] mongrel_rails mongrel::restart ======================================== Note: Replace the “username” equal to original cpanel username

restart ruby and rails application

Posted by Rishikesh Vispute Categories: ruby and rails

How to restart  ruby and rails application by using ssh ? Ans : You can restart your ruby and rails application by using following command. Syntax : /usr/bin/ruby -I /home/USERNAME/ruby /usr/bin/mongrel_rails start -p PORT -d -e  ENVIRONMENT -P log/mongrel.pid This should be executed in the root directory of the Rails app you wish to run  [ Read More ]

If you want to redirect all the URLs from http to https then add the following rules in .htaccess files OR Redirect from http://domain.com/anything to https://domain.com/anything For Example : Redirect  from http://indianwebportal.com/anything to https://www.indianwebportal.com/anything ================================= RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} / RewriteRule ^(.*)$ https://www.bestdesigns.co.in/blog/$1 [R,L] =================================

redirect all URLs to anoter blog URLs

Posted by Rishikesh Vispute Categories: How to, htaccess

If you want to redirect all the URLs  from one blog to another blog URLs then add the following rewrite rules in .htaccess files. Example : I have redirected  my old blog from “http://www.bestdesigns.co.in/blog to my new domain http://www.bestdesigns.co.in/blog. I have added the following rewrite rules into old blog .htaccess files menas when any one  [ Read More ]

Mysql Database size shows 0 in cPanel

Posted by Rishikesh Vispute Categories: cpanel

Error : database size not updated in cpanel Ans : In cPanel >> mysql databases , it shows database size as ” zero” even if it is not. You just need to make  the below changes to fix  it : root@server [#] vi   var/cpanel/cpanel.config and search for following line. disk_usage_include_sqldbs=0 ( set it to  [ Read More ]

Page optimized by WP Minify WordPress Plugin

Optimized by SEO Ultimate