How to : Exim Remove All messages From the Mail Queue

Cheap reseller Hosting


Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail. For more information you can see Exim documentation.


In this article i will show some commands to removing all messages from the Mail Queue. Please Follow the Steps. 


Step 1 :  To print a list of the messages in the queue, enter the following command :

# exim -bp


Step 2 :  To remove a message from the queue, enter the following command :

# exim -Mrm {message-id}


Step 3 :  To remove all messages from the queue, enter the following command :

# exim -bp | awk ‘/^ *[0-9]+[mhd]/{print “exim -Mrm ” $3}’ | bash


Step 4 :  Dallas Marlow, suggested following clean command:

# exim -bp | exiqgrep -i | xargs exim -Mrm



That’s it ! 🙂 🙂

Cheap web Hosting

How to Uploading Files using Unzip in Linux

Cheap reseller Hosting

Uploading Files using Unzip in Linux

When you want to upload large number of files in your web server, you can easy to uploading large number of files by using unzip in Linux. Please follow the steps and quickly upload the necessary files in your linux os.

Uploading Files using Unzip in Linux
Step 1 : To Upload the zipped file to your SSH server.

Step 2 : To Unzip the zipped file to the destination folder.

Step 3 : To test the zipped file by using following command.

unzip -t zip_file_name


Step 4 : To extract the zipped file, use the following command.

unzip zip_file_name -d destination_folder

extract file

Note: Don’t forget to use the -d parameter as otherwise you will have nasty errors. Be careful with permissions as well.


That’s it !

Cheap web Hosting

How to install PEAR for PHP in Linux

Cheap reseller Hosting

Install PEAR for PHP in Linux



                 PEAR is a structured library of open-source code for users of PHP. When pear is not installed in your server, then install it. You can easily install PEAR for php in Linux

In this article we will give you how to install PEAR for php in Linux. Follow the steps for Installing PEAR.

Step 1 : Download the installation php file.


Step 2 : Rename to php file by using following command.

cp go-pear go-pear.php

Step 3 : Run the php script.

Then, Windows Command Prompt to start the installation.

Step 4 : You can install php various extensions by using following command.

pear install package


After installing PEAR, you can install modules by going to the PEAR admin at example :-, where is your domain name.



Cheap web Hosting

How to disable core dumps on Linux Servers

Cheap reseller Hosting

To disable core dumps on Linux Servers

Core dump is a memory or a storage dump which records the memory state of a computer program when it was terminated by the operating system due to various error behavior. In this article Hostripples will give you how to disable core dumps on Linux Servers.


Please follow the steps to disable core dumps for all users : 

Step 1 :  Edit /etc/security/limits.conf and use the following command.

vi /etc/security/limits.conf

Step 2:  Make sure the following config directive exists by using following command. 

hard core 0

Step 3 : Disable core dumps for setuid programs by using following command.

echo ‘fs.suid_dumpable = 0’ >> /etc/sysctl.conf
sysctl -p

Step 4 : Now, Set a soft limit to stop core dumps being created by using following command.

echo ‘ulimit -S -c 0 > /dev/null 2>&1’ >> /etc/profile

That’s it!


Cheap web Hosting

How to install Zend Optimizer in Cpanel Linux Server

Cheap reseller Hosting



Introduction : 

Zend Server is the most complete PHP distribution with a continuously updated set of advanced value-add features designed to optimize productivity, performance, scalability and reliability. It is a free PHP extension to enable the web server to execute files encoded by Zend Guard/Encoder so it’s executed the same as any regular PHP files. Zend Encoder also is useful for encoding PHP files to protect source code. Zend Server supports any and all PHP code and provides deep insights into that code including the most popular PHP applications and frameworks like WordPress, Magento, Drupal, Zend Framework, Symfony, and Laravel. Any code you have in PHP will run on Zend Server. You will need to install Zend Optimizer in your server running Linux.



Installing zend in cPanel Linux Server follow this Steps:

Step 1 : Log in to your server via SSH with root user.

Step 2 : Run the following command.


Step 3 : Follow the instructions on the screen to install Zend Optimizer.

Step 4 : Then, Restart the apache.

 service httpd restart

Step 5 : To check whether zend optimizer is running and vserion.

 php -v

It would show ioncube or zend optimizer version.


install Zend Optimizer





Follow the on-screen instructions.

When you want to install Zend Optimizer on a Non-cPanel server please follow the steps:

Step 1 : Download Zend Optimizer.

Step 2 : Upload the .tar.gz into your web server.


Step 3 : Extract the archive by using the following command.

tar -zxvf filename_here.tar.gz

Step 4 : Now a new directory should appear.

Step 5 : Execute the following command.


Step 6 : Follow the instructions on-screen.

Step 7 : Restart HTTPD (Apache) by using following command.

service httpd restart




That it !

Cheap web Hosting

Change Linux Root Password Temporarily

Cheap reseller Hosting

How to change Linux root password temporarily

If you are logged in as root and you don’t know the root password then you can follow the steps. You can easy to change your root password. 


Step 1. Back-up your current shadow file.

[root@hostripples ~]# cp /etc/shadow /etc/shadowbkup

Step 2. Change the current root password

[root@hostripples ~]# passwd root

Changing password for user root.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

Step 3. Switch to a local user to test whether ‘your’ root password is working or not.

[root@hostripples ~]# su – localuser 
[localuser@hostripples ~]$ su – root
[root@hostripples ~]#

Yes, you are now logged in as root with ‘your’ password.

Step 4. Restore the previous root password

[root@hostripples ~]# mv /etc/shadowbkup /etc/shadow
mv: overwrite `/etc/shadow’? y
[root@hostripples ~]#





This trick is meant for students and kindly do not misuse.

Cheap web Hosting

How to Setup Minecraft on a Linux CentOS Server

Cheap reseller Hosting

Setup Minecraft on a Linux CentOS Server




* First, To download PuTTY to access SSH.


* Installing Minecraft by using following command: 

yum install java-1.6.0-openjdk


* Switch to the root directory by using following command:



* Create a Minecraft directory

mkdir minecraft


* Enter the directory by using following command: 

cd minecraft


* Download Minecraft by using following line 



* Now, Using Following Scripts 

chmod +x minecraft_server.jar
yum install screen


* Then, Start up Minecraft

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui




** To close PuTTY and keep Minecraft running.:

Control + a + d


** To get back to the screen where Minecraft is running hold the following keys on your keyboard:

screen -r



Cheap web Hosting

How to Disable Clamav and Amavis for Postfix

Cheap reseller Hosting

How to disable Clamav and Amavis for postfix


If you want to run postfix but not run the antivirus (Clam, Amavis), there is a way to disable those services while allowing postfix to run as normal.

Follow the instructions you can easily to disable Clamav and Amavis for postfix.


1) Edit the file/etc/postfix/

And use the following commands :

content_filter = amavis:[]:10024
receive_override_options = no_address_mappings


2) Edit the file /etc/postfix/

And use the following commend :

amavis unix – – – – 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes inet n – – – – smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=


3) To stop the services :

/etc/init.d/amavisd stop
/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
/etc/init.d/clamd.amavisd stop


4) Disable the services from start-up :

chkconfig –levels 235 amavisd off
chkconfig –levels 235 clamav-daemon off
chkconfig –levels 235 clamav-freshclam off
chkconfig –levels 235 clamd.amavisd off


5) Reboot your server, and restart postfix by entering :

/etc/init.d/postfix restart





Cheap web Hosting

Install Mytop in Linux and Cpanel

Cheap reseller Hosting

How to install mytop in linux and cpanel


MySQL is one of the most important programs on a server, unfortunately it is also pretty resource intensive. One a  server it is not uncommon for a single user or even a query to take up the bulk of the servers CPU cycles. Mytop is a very useful program to see what queries a server is currently processing as well as which user is executing them. Think of mytop as top for mysql. If you see a lot from a user that means they are probably the hog. Mytop can also be useful for figuring out exactly which queries are causing the problem in the case of a self-designed website.



install mytop


The following commands use  how to install mytop on the server and run it.

1) To Install Term Read Key:

cd /usr/local/src


tar -zxf TermReadKey-2.30.tar.gz

cd TermRead*

perl Makefile.PL

make test


make install

cd ..


2) Now,To Install DBI:


tar -zxf DBI-1.48.tar.gz

cd DBI*

perl Makefile.PL

make test


make install

cd ..


3) Finally  To Install MYTOP:


tar -zxf mytop-1.4.tar.gz

cd mytop*

perl Makefile.PL

make test


make install


NOTE: You may get following error in CentOS 5.3

Error in option spec: “long|!”

Search for the line in Makefile.PL

“long|!” => \$config{long_nums},

Change it to by commenting using #

#”long|!” => \$config{long_nums},

Cheap web Hosting

Installing LAMP On Linux Mint

Cheap reseller Hosting

Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint. 

LAMP stands for Linux, Apache, MySQL, PHP. How to install Linux the L of LAMP.


Install Apache

To start off we will install Apache.

1) Open up the Terminal

(Applications > Accessories > Terminal)

2) Copy/Paste the following line of code into Terminal and then press enter

sudo apt-get install apache2

3) Type you’re password, and then press enter.

The page should display the words





“It works!” 


Testing Apache


To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1) Open up any web browser and then enter the following line.


2) You should see a folder entitled apache2-default/.

3) Open it and you will see a message saying 

“It works!”, congrats to you!


Install PHP

PHP is an open source web scripting language that is widely use to build dynamic webpages.

To install PHP

1) Open up the Terminal

(Applications > Accessories > Terminal)

2) Type in this command

sudo apt-get install php5 libapache2-mod-php5

After you answer yes to the prompt twice, PHP will install itself.

3) It may also be useful to add php to the directory index, to serve the relevant php index files

sudo nano /etc/apache2/mods-enabled/dir.conf


Test PHP

To ensure there are no issues with PHP let’s give it a quick test run.

1) Open up the Terminal

(Applications > Accessories > Terminal)

2) Type in this command

sudo gedit /var/www/testphp.php

This will open up a file called phptest.php.

3) Copy/Paste this line into the phptest file:

<?php phpinfo(); ?>

4) Save and close the file.

5) Now open you’re web browser and type the following into the web address:


The page should look

Congrats you have now installed both Apache and PHP!


Install MySQL

To finish this guide up we will install MySQL. MySQL is a powerful database management system used for organizing and retrieving data

To install MySQL,

1) Open terminal and type in these commands

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

During the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell.

2) Once you have installed MySQL, we should activate it with this command

sudo mysql_install_db

3) Finish up by running the MySQL set up script

sudo /usr/bin/mysql_secure_installation

4) The prompt will ask you for your current root password.

Type it in.

5) Enter current password for root (enter for none)





successfully used password, moving on…

Cheap web Hosting

1 2