EZ Linux Admin random header image

To install MySQL governor on your Cpanel Cloud Linux server

May 18th, 2013 by EZ linux · No Comments

To install MySQL governor on your server:

yum remove db-governor db-governor-mysql # you can ignore errors if you don’t have those packages installed
yum install governor-mysql –enablerepo=cloudlinux-updates-testing
/usr/share/lve/dbgovernor/mysqlgovernor.py –install

* The installation currently supports only cPanel & DirectAdmin servers.

** Please, note that MySQL on cPanel servers will be updated from CloudLinux RPMs.

*** MySQL Governor is compatible only with MySQL 5.x

→ No Comments Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts


How to remove Softacuous

May 15th, 2013 by EZ linux · No Comments

/usr/local/cpanel/bin/unregister_cpanelplugin /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/softaculous.cpanelplugin;

rm -rf /etc/cron.d/softaculous;

rm -rf /var/softaculous;

rm -rf /usr/local/cpanel/whostmgr/cgi/softaculous;

rm -rf /usr/local/cpanel/whostmgr/cgi/addon_softaculous.php;

rm -rf /usr/local/cpanel/whostmgr/cgi/addon_softaculous.cgi

rm -rf /usr/local/cpanel/base/frontend/x3/dynamicui/dynamicui_softicons.conf;

→ No Comments Tags: Cpanel and WHM · Linux Software / Scripts


Installing PostGreSQL on a Cpanel server

May 15th, 2013 by EZ linux · No Comments

You can install PostgreSQL by running the following command:

# /scripts/installpostgres

Note that after you install PostgreSQL, you will need to rebuild both the internal PHP used by phpPgAdmin, and the PHP used for your sites (they are two different installations). You can do this by running *both* of these commands:

# /scripts/easyapache –build
# /scripts/makecpphp

If you do not run *both* of the above commands *after* running /scripts/installpostgres, your PHP applications and phpPgAdmin will not be able to interact with PostgreSQL.

→ No Comments Tags: Cpanel and WHM


Install Attracta on a Cpanel server

May 15th, 2013 by EZ linux · No Comments

wget -N http://www.attracta.com/static/download/cpanel-install
sh cpanel-install

That’s it, good luck!

→ No Comments Tags: Cpanel and WHM


Installing Ruby on Rails for a Cpanel server is really easy

May 15th, 2013 by EZ linux · No Comments

You can install Ruby on Rails by running the following command:

# /scripts/installruby

That’s it, enjoy!

→ No Comments Tags: Cpanel and WHM


How to clean out a cpanel servers’s mail queue by command line

March 10th, 2013 by EZ linux · No Comments

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 it’s just horrible now.

But thanks to the nice little code you can do it much faster from ssh.

→ 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 your scripts are executing.

We suggest just adding it to the public_html folder in case your server has restrictions on custom php.ini files in other locations.

Note: Most cpanel based server will work with this.

→ No Comments 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

→ No Comments 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

→ 1 Comment Tags: Cheat Sheets · Installing Linux · Linux Commands · Linux Software / Scripts · Linux Tricks


Named backup or transfer files

June 5th, 2012 by EZ linux · No Comments

Most of the files are in the etc folder.

→ No Comments Tags: Cheat Sheets · Cpanel and WHM · Linux Back Up · Linux Operating Systems · Linux Security