Monthly Archives: April 2009

Free Wordpress themes download sites.

0
Filed under Blogging, Wordpress
Tagged as

Below are some free Wordpress theme download websites:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • De.lirio.us
  • email
  • Furl
  • laaik.it
  • LinkedIn
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Print
  • TwitThis

How to repair all MySQL databases on a server in one go

0
Filed under Hot Tips, cPanel
Tagged as , , , , ,

Here’s a quick & ditry trick to repair all MySQL databases on a server, in one go.

Run the following commands on your server, in the console as root.


mysqlcheck –all-databases -r #repair
mysqlcheck –all-databases -a #analyze
mysqlcheck –all-databases -o #optimize

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • De.lirio.us
  • email
  • Furl
  • laaik.it
  • LinkedIn
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Print
  • TwitThis

How to add rc.local support to Debian 4.0 servers

0
Filed under HOWTO\'s
Tagged as , , , ,

Debian 4.0 doesn’t have an /etc/rc.local file, so if you’re used to adding your own startup scripts to /etc/rc.local then you will need to add this file manually as follows:

1
2
3
4
5
6
7
8
9
10
11
echo "#!/bin/bash" > /etc/init.d/rc.local
 
echo "# Add all the scripts to run after system startup" >> /etc/init.d/rc.local
 
echo "iptables-restore < /root/custom_firewall_rules" >> /etc/init.d/rc.local
 
chmod +x /etc/init.d/rc.local
 
ln -s /etc/init.d/rc.local /etc/rc.local
 
update-rc.d -f rc.local start 99 2 3 4 5 .

This will create an /etc/init.d/rc.local (needed for Debian to work properly) file, and add a rule to restore the custom iptables rule that I have saved in the /root/ folder.

Then we make the file executable, and lastly update the rc environment to detect & use rc.local as a startup file. On the last line I have some numbers: “99“, “2“, “3“, “4” & “5” – this tells the update script to run the script very last the start-up sequence (i.e. #99), and then activate it for run levels 2,3,4 & 5.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • De.lirio.us
  • email
  • Furl
  • laaik.it
  • LinkedIn
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Print
  • TwitThis