Monthly Archives: March 2009

Preset Cpanel Servers

To preset a server: First login and go to the WHM > Server Configuration > Basic cPanel/WHM Setup: 1) Check that the main ip is the server primary ip 2) Make sure that the primary and secondary ns are set

Posted in Server Security, Server Setup

Important Scripts

========================= Resore pkg cat /root/finallist | awk -F. ‘{print $1}’ > /root/list0 for i in `cat /root/list0`;do /scripts/restorepkg $i;done ========================= to copy the dailybackups for a list of  users to a user home from server backup #!/bin/bash for i in

Posted in Issues, Scripts

Ruby on Rails Installation Script

cd /usr/src wget tar -xzvf ruby-1.8.5.tar.gz cd ruby-1.8.5/ ./configure make make test make install cd /usr/src wget tar -zxvf rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb gem update gem install rails –include-dependencies rails /usr/local/rails mv /usr/local/rails/public/.htaccess /usr/local/rails/public/.htaccessfile echo “RewriteBase /rails” > /usr/local/rails/public/.htaccess

Posted in Scripts, Third party softwares

Ruby on Rails Issue

1) First remove all gems Code: gem uninstall rails gem uninstall mongrel gem uninstalled fastthread 2) Now run cPanel’s Ruby installation script Code: /scripts/installruby 3) Now second command as required by cPanel Code: /usr/local/cpanel/bin/ror_setup 4) It seems cPanel’s “fast head”

Posted in Cpanel, Issues, Third party softwares

To get a copy of every mail

To get a copy of every mail send from a mail , to Add the following to etc/exim.filter  if $sender_address contains “”  then   unseen deliver “”  endif

Posted in Mail
Blog Stats
  • 129,425 hits

Get every new post delivered to your Inbox.

Join 211 other followers