Archive for the Category ◊ Linux Server Hosting ◊

Point Domain to Another IP Without Changing DNS Name Servers
Saturday, February 28th, 2009 | Author:

One can point your site to any designated IP address you want without changing the Name server of your Domain. Yes, you will be able to view/test your site on new server without changing the name servers as well as having trouble of using site Preview options in Control panel like Plesk. This option is also helpful in the case of some site that use .js script in their codes since those scripts don’t work in Plesk site preview option. Specially in case of sites that work on DotNetNuke [DNN].

So here we go:

On your local machine, [AND NOT THE SERVER]:
Goto START >> Run >> and Type:
notepad "C:WINDOWSsystem32driversetchosts"
And hit Enter


Backup and Restore MySQL database using phpmyadmin
Monday, October 13th, 2008 | Author:

Log into Plesk Control Panel and  steer yourself to “phpMyAdmin

For Backup of MySQL database click on Export.

1) Make sure that entire database is selected for Export, and not just one table.
All the Tables under Database list should be added in Export List.

2) Now, follow the steps given
select “SQL” for output format
Check “Structure”
and “Add AUTO_INCREMENT” value
Check “Enclose table and field name with back quotes”
Check “DATA
check use “hexadecimal for binary field”
Export type set to “INSERT

3) Check “Save as file”, it is not necessary to change the file name.
Click “GO” to download the backup file.

Backup of your MySQL database is created !

Now, for Restoring backup of MySql database

1) Click on SQL tab, to start restoration of your backup file.

2) Un-Check “Show this query here again”.

3) Browse to your database backup file.

4) Click – “GO”

Backup is Restored !

Large MySQL Backups:

Error: MySQL has gone away

To restore large SQL backups there are 2 setting that you will need to take of:

1. Make sure that you PHP upload size is great than your MySQL backup file, this setting will be needed to be changed in php.ini file. Only those who has server administrator access would be able to make changes in PHP.INI file. Hence you will have to contact your Hosting provider if you are hosted on a Shared server. But if you have a Dedicated Server then this file is normally stored in C:\Windows\php.ini or you can esily get the path from phpinfo() page. The option that you need to change is upload_max_filesize. It is also suggested that you increase the following parameters as per the size of your MySQL backup file:

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60    ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

2. You will need to increase the MySQL buffer size in MySQL configuration size, the file is my.cnf in Linux server and my.ini on Windows Server. The parameter that you need to change is:


By default it is set to 1MB, if the entry is not present then add it under [MYSQLD] section.

Please Make sure that you restart IIS webserver after making change to php.ini and restart MySQL after making changes in my.ini file.

If you looking backup MySQL using VBS or ASP script then refer the link below:

How to backup MySQL using VBS or ASP script.

Protect Apache WebServer From DDOS with mod_evasive
Sunday, October 12th, 2008 | Author:

What is Apache ?

The Apache HTTP Web Server, we all well know it as Apache, is one of the world’s most widely used Web servers. It is very popular because of its strong security features, most outstanding performance & the fact that it does cost us any thing. It comprehensively supports and it is most recommended for MySQL & PHP/Perl/Python (and now also supports Ruby) programming languages.


It’s available for all flavours of Unix (GNU/Linux & UNIX systems), Microsoft Windows including other OS as well, for Example Linux distros such as  RedHat, SuSe, Debian, CentOs, Gentoo, Mandrake, Fedora, etc etc. Apache is used to serve both dynamic static content & static Web pages on the Internet. Some web applications are developed expecting the features & environment that Apache provides. It is one of the most basic feature in the hosting world is what allows your website to be seen by the world.

What is a DDoS attack ?


Monitoring Bandwidth usage with SNMP and RRDtool for Linux
Sunday, September 28th, 2008 | Author:

Before monitor any server you need to install SNMP and RRDTool packages on monitor server and net-snmp package on server which you want to monitor.

lets assume server which has SNMP and RRDTool means monitor server has ip address
and server which you want to monitor has IP address

SNMP Installation
SNMP packages require for querring .

- type command at the prompt
#yum search snmp
It will show you different snmp packages.
You neet to install 2 packages
type command
#yum install net-snmp
#yum install net-snmp-devel

RRDTool Installation

RRD store and display time-series data (i.e. network bandwidth, server load average). It stores the data in a very compact way that will not expand over time, and it presents useful graphs by processing the data to enforce a certain data density.

RRDTool 1.2.x has dependancies ,hence you need to install following packages.

* libart_lgpl-2.3.11-2.i386.rpm
* libart_lgpl-devel-2.3.11-2.i386.rpm


Install Java on Linux Platform
Sunday, September 28th, 2008 | Author:

Download the JDK from
(A)  install jdk by running the RPM or bin file.

Installation Instructions

Install formats – JDK 5.0 is available in two installation formats.

  • Self-extracting Binary File – This file can be used to install the JDK in a location chosen by the user. This one can be installed by anyone (not only root users), and it can easily be installed in any location. As long as you are not root user, it cannot displace the system version of the Java platform suppled by Linux. To use this file, see Installation of Self-Extracting Binary below.
  • RPM Packages – A rpm.bin file containing RPM packages, installed with the rpm utility. Requires root access to install, and installs by default in a location that replaces the system version of the Java platform supplied by Linux. To use this bundle, see Installation of RPM File below.

Choose the install format that is most suitable to your needs.


Category: Java, Linux Server Hosting |  Tags: , , | Comments off
Installing Tomcat on Linux
Sunday, September 28th, 2008 | Author:

To install apache tomcat , you need to install jdk (Java Development kit).
Tomcat need JAVA_HOME set properly before prior to operation or installation.

You can download the installer from

Download version 5.0.28 to be compatible with JDK 1.4.2 because the latest versions of tomcat require JDK5

To extract and install Tomcat run this command:

]# tar xvfz jakarta-tomcat-5.0.28.tar.gz

The Tomcat files are installed in a directory called jakarta-tomcat-5.0.28 in the current directory.

Then you need to set CATALINA_HOME properly prior to start tomcat.

Use following command to set CATALINA_HOME and provide full path of tomcat directory (from toot).

export CATALINA_HOME=/user/local/jakarta/jakarta-tomcat-5.0.28

Run Tomcat

goto bin directory of tomcat
cd /user/local/jakarta/jakarta-tomcat-5.0.28/bin
]# ./

Open web browser and type http://your_domain:8080/ you should see the Tomcat Administration page

Test Tomcat

go to webapps/ROOT in the tomcat directory and create page hello_world.html and write in it

Hello World

open the URL http://your_domain:8080/hello_world.html you should see your page.

Test JSP page

go to webapps/ROOT in the tomcat directory and create page test.jsp and write in it the following lines
<%=new String(“Hello World…”)%>
<%=new java.util.Date()%>

save and run the following URL http://your_domain:8080/test.jsp you should see Hello World.. followed by current date.

Monitor Tomcat

You can see the log file in the logs directory  /user/local/jakarta/jakarta-tomcat-5.0.28/log/

Stop Tomcat

Go to the tomcat bin directory and run command.

]# ./

Note:- Apache Tomcat on Linux faster that tomcat in Windows at least 2 times in both startup, shutdown and in compiling jsp files.

Category: Java, Linux Server Hosting |  Tags: , , | Comments off