Archive for the ‘Linux’ Category

cPanel/Linux: How to Suspend / Unsuspend an Account via SSH

Wednesday, November 23rd, 2011

If you want to suspend/unsuspend an account via SSH instead of doing it through WHM web interface. following commands may be helpful for you. Suspend an Account from SSH

Linux: Cannot Delete Files from a Directory /bin/rm: Argument list too long

Tuesday, November 15th, 2011

If you're trying to delete files from a directory that have too many files and over sized then simply rm command will not work and you will get error /bin/rm: Argument list too long

FFMPEG-PHP: make: *** [ffmpeg_frame.lo] Error 1

Thursday, November 3rd, 2011

While compiling ffmpeg-php from source with make command you may get the following error terminating your making process; make: *** [ffmpeg_frame.lo] Error 1

How To Uncompress Multiple .zip, .gz or .bz2 Files on Linux (Centos)

Tuesday, October 25th, 2011

In situations while using SSH you may want to unzip/uncompress/extract multiple compressed files, you may follow the followings; To unzip multiple zipped .zip files; for file in *.zip; do unzip "${file}"; done

cPanel: How To Disable Email Service Only For a Domain

Friday, October 21st, 2011

Some time you may need to disable a domain's email service only, e.g. you have some non-payment issue with a client and you want to secretly disable email only without suspending the account/site or for some purpose you want to let the site running and just to disable emails. I have ...

Sendmail: How to Clear/Flush Sendmail Queue

Thursday, October 20th, 2011

Some time you want to clear/delete/flush all messages in current sendmail queue. You may follow the instructions below for the purpose.

Sendmail: How to Check Mail Messages in Queue

Thursday, October 20th, 2011

You will probably need to execute the following commands either as root or using the sudo command (depends on settings of your server). In some cases you may need to type the path to sendmail i.e. /usr/sbin/sendmail.

How to Set Date/Time in Linux (Centos)

Tuesday, August 23rd, 2011

If you want to set date/time on linux manually (instead of using synchronization like ntp) you may use the date command to do it. Login as root and run the following command, it will show you the current date/time.