Monthly Archives: March 2009

//March
­
24 03, 2009

Preset Cpanel Servers

By |March 24th, 2009|Server Security, Server Setup|0 Comments

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 to ns1 and ns2 (or how they had been prior to a reload) ************************************************************************** Next [...]

24 03, 2009

Important Scripts

By |March 24th, 2009|Issues, Scripts|0 Comments

========================= 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 `cat /root/thewebcousers`; do cp -rp /backup/cpbackup/daily/$i.tar.gz /home/thewebco chown thewebco.thewebco /home/thewebco/$i.tar.gz done ========================= #!/bin/bash for i [...]

24 03, 2009

Ruby on Rails Installation Script

By |March 24th, 2009|Scripts, Third party softwares|0 Comments

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 cat /usr/local/rails/public/.htaccessfile >> /usr/local/rails/public/.htaccess mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conffile echo "Alias /rails /usr/local/rails/public" > /usr/local/apache/conf/httpd.conf cat /usr/local/apache/conf/httpd.conffile [...]

24 03, 2009

Ruby on Rails Issue

By |March 24th, 2009|Cpanel, Issues, Third party softwares|0 Comments

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" forgets to install, fast Thread Code: gem install fastthread 5) App's don't run still? - [...]

24 03, 2009

To get a copy of every mail

By |March 24th, 2009|Mail|0 Comments

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

Load More Posts