First stop exim in your WHM under services, just unclick any exim services running and save it. Then open you ssh client and use this code: /usr/sbin/exiqgrep -i | xargs /usr/sbin/exim -Mrm Then restart exim. This is much better then the mail queue system cpanel has installed, about 4 years (2009) they changed it and [...]
Entries Tagged as 'Linux Tricks'
How to clean out a cpanel servers’s mail queue by command line
March 10th, 2013 by EZ linux · No Comments
Tags: Cpanel and WHM · Linux Mail · Linux Software / Scripts · Linux Tricks
magic qoutes
January 8th, 2013 by EZ linux · No Comments
This will solve the magic quotes compatibility when you create a local php.ini file. If you can’t turn off magic quotes using the htaccess file just: Create a text file Rename it to ‘php.ini’ Add the lines magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off extension=pdo.so extension=pdo_mysql.so Save it to the directory/ies in which [...]
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts · Linux Tricks
Clear bash history in Linux
August 14th, 2012 by EZ linux · No Comments
history -c
Tags: Linux Commands · Linux Security · Linux Tricks
Change the language on Linux with a command
June 7th, 2012 by EZ linux · 1 Comment
It’s easy just run this command and than choose a language: system-config-language
Tags: Cheat Sheets · Installing Linux · Linux Commands · Linux Software / Scripts · Linux Tricks
How do I restart Linux network service?
May 14th, 2012 by EZ linux · No Comments
RedHat Linux command to reload or restart network (login as root user): # service network restart OR # /etc/init.d/network restart To start Linux network service: # service network start To stop Linux network service: # service network stop Debian Linux command to reload or restart network: # /etc/init.d/networking restart To start Linux network service: # [...]
Tags: Cheat Sheets · Linux Software / Scripts · Linux Tricks
How to install CPanel over Centos 6 minimal
May 13th, 2012 by EZ linux · No Comments
To install CPanel over Centos minimal 6 you need to get some basic packages. You can easily grab those with YUM here is the package command to get Centos Minimal install ready for CPanel. yum groupinstall base
Tags: Cpanel and WHM · Installing Linux · Linux Commands · Linux Operating Systems · Linux Software / Scripts · Linux Tricks
How to Tell What Type of Memory Your Linux PC Has Installed
May 6th, 2012 by EZ linux · No Comments
Here it is, the magic code. Just run this as root and it will give you the ddr, mhz, and much more. sudo dmidecode –type memory
Tags: Cheat Sheets · Cpanel and WHM · Hardware · Linux Tricks
How to increase upload limit for PhpMyAdmin on a Cpanel server
April 22nd, 2012 by EZ linux · No Comments
By default, PhpMyAdmin in a Cpanel server imposes an upload limit of 50MB. So importing a SQL file larger than 50MB may time out. Cpanel PhpMyAdmin uses the php.ini file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini. To increase upload limit, change values of upload_max_filesize and post_max_size in this php.ini file. Typically, you may set value of post_max_size to twice the [...]
Tags: Cpanel and WHM · Linux Software / Scripts · Linux Tricks
kill a linux process that won’t die
February 3rd, 2012 by EZ linux · No Comments
kill -s 9 [PID] Also try it without the -s if it won’t go.
Tags: Linux Commands · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks
How to search a directory for a certain search string.
January 23rd, 2012 by EZ linux · No Comments
Pretty simple, this takes minimal load and delivers the data as it’s found. grep -R String *
Tags: Linux Commands · Linux Software / Scripts · Linux Tricks
