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 ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz tar -xzvf ruby-1.8.5.tar.gz cd ruby-1.8.5/ ./configure make make test make install cd /usr/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz 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 someaddress@somedomain.com Add the following to etc/exim.filter  if $sender_address contains “@somedomain.com“  then   unseen deliver “someaddress@somedomain.com“  endif

Posted in Mail
Blog Stats
  • 117,538 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers