Install Mail Server On your VPS - centos base

It's so simple

1. yum install -y exim
2. service exim start
3. chkconfig --level 235 exim on

Reset Bandwith To Zero - CPanel

1. Login To your ssh server
2- cd /var/cpanel/bandwidth.cache/
3- vi domainname.com
4- delete the numbers in that file and retype 0 instead of the number
5- save and quit and show bandwidth usage in WHM you will find its 0

wow that how it work

Using Varnish

If your application works OK we can now switch the ports so Varnish will listen to port 80. Kill varnish.:

# pkill varnishd

and stop your web server. Edit the configuration for your web server and make it bind to port 8080 instead of 80. Now open the Varnish default.vcl and change the port of the default backend to 8080.

Start up your web server and then start varnish.:

# varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000

How to get file From FTP on my Shell

 ftp ardsolution.co.cc
This command will attempt to connect to the ftp server at abc.xyz.edu. If it succeeds, it will ask you to log in using a username and password. Public ftp servers often allow you to log in using the username "anonymous" and your email address as password. Once you are logged in you can get a list of the available ftp commands using the help function:

 ftp> help
This lists the commands that you can use to show the directory contents, transfer files, and delete files.

 ftp> ls
This command prints the names of the files and subdirectories in the current directory on the remote computer.

CPanel - Change All Folder Or File To 755 and 644 From shell

When i check my cpanel, my folder has change into 400 and file 600, how can i change all folder subfolder and all file on subfolder, u can try here baby :


1. Create file bash,
#vi change.sh
2. Paste this bash script
#Muhammad Hafidz Aghifary
#24-04-2011 - test test test
# Change Folder 755 and file 644 instant
# Status Weekend On Office

Email Problem On CPanel - How to solve on shell

when i look at my email space is full at cpanel, but when i look at my webmail, there is nothing there, even at the trash, what happen here?????????, now u can try this :

VPS SSH error PTY allocation request failed on channel 0

How do you fix the issue with a SSH server which freezes after authenticating?
$ ssh root@xx.xx.xxx.xxx
The authenticity of host ‘xx.xx.xxx.xxx (xx.xx.xxx.xxx)’ can’t be established.
RSA key fingerprint is 56:c2:ec:dd:64:ba:4d:3b:d0:fa:fd:f2:b2:7f:bf:b3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘xx.xx.xxx.xxx’ (RSA) to the list of known hosts.
Password:
PTY allocation request failed on channel 0

Worpress Problem - my post has gone

when your client said, what my post has gone when i look yesterday there is no problem

1. first analyze their error log on cpanel -> file manager
2. if there is no problem ask client to give their wpadmin pass
3. check post and categories, if post zero( 0 ) , and categories have a number

How To Set Time Backup on Cpanel Root

i want to set my backup at 1 am, how i do that??


1. cd /var/spool/cron
2. root@server [/var/spool/cron]#vi root
3. and u will see cron for up cp ,
14 0 * * * /scripts/upcp
4. give more cron for you backup ,
0 1 * * * /scripts/cpbackup
explanation for the cron , you will run /script/cpbackup at 1 am

thats how it works wow.....

Exim Queue

Basic information

Print a count of the messages in the queue:

root@localhost# exim -bpc

Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):

root@localhost# exim -bp

Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):

root@localhost# exim -bp | exiqsumm

Print what Exim is doing right now:

root@localhost# exiwhat

SSL Error Code

Code Type Description
-1001 General System Error
-2001 Required Field Missing The return text is of the format:
"Required Field Missing: -Please supply required field and resubmit request"
-2002 Invalid PartnerCode

How To Reset Google Apps Password

You will be able to reset your Admin password only if you have enabled the admin password reset feature in your control panel. If you have enabled this feature, you can reset your admin password by following these steps:

1. Navigate to your control panel login page at https://www.google.com/a/your_domain.com. Be sure to replace 'your_domain.com' with your actual domain name.
2. Click I can't access my account.