HostOnNet Blog

Author Archives: admin

XPGnome – Make Ubuntu look like Windows XP

XPGnome theme can make ubuntu look like Microsoft Windows XP.


Google Public DNS

Google started Public DNS service like OpenDNS. Google Public DNS server IP address are 8.8.8.8 8.8.4.4 You can use google dns for resolving name servers by editing resolv.conf vi /etc/resolv.conf add nameserver 8.8.8.8 nameserver 8.8.4.4 For more information on Google


Making MeidaWiki urls seo friendly

Open LocalSettings.php Find $wgArticlePath = “$wgScript/$1”; Replace with $wgArticlePath = “/$1”; Now create .htaccess file with following content RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA] Thats all. Now your media wiki installation have seo friendly


Limit number of connections for MySQL user

To limit number of mysql connection per user, edit /etc/my.cnf vi /etc/my.cnf In [mysqld] section, set value for max_user_connections. [mysqld] max_user_connections=40 This will limit mysql connections at a time for any user to 40.


PHP Tutorial Day 1

To run PHP programs you need a web server installed on your computer. For windows, it is better install Zend Server Community edition. Once you installed, you can start creating php programs. You need to upload Programs to DocumentRoot of


Can’t connect to local MySQL server through socket

While running symfony jobeet tutorial, i got following error This is fixed by editing config/databases.yaml Find line Replace with


Changing computer name in ubuntu

To change computer name in ubuntu, run sudo echo “computer-new-name” > /etc/hostname Now you need to reboot to get the computer name changed.


Enable lighttpd status and config pages

To enable lighttpd status and config pages, you need to edit lighttpd.conf Find Replace with Find Replace with Restart lighttpd Now you can visit urls like http://your-ip/server-config and http://your-ip/server-status To view lighttpd status and configuration.


Force saving passwords on firefox.

For some sites, when you login, forefox won’t prompt you to save passwords. This is because in the html form, input tag have autocomplete=”off” I used to login to softlayer private network everyday. To get password saved by firefox, i


Installing Java on CentOs

Java is available in CentOS 5. root@server70 [~]# yum list|grep openjdk java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.2.b09.el5 installed java-1.6.0-openjdk-demo.x86_64 1:1.6.0.0-1.2.b09.el5 updates java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.2.b09.el5 updates java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.0-1.2.b09.el5 updates java-1.6.0-openjdk-src.x86_64 1:1.6.0.0-1.2.b09.el5 updates root@server70 [~]# To install java, run yum install java-1.6.0-openjdk Java will be installed on