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 [...]
Entries Tagged as 'Linux Security'
To install MySQL governor on your Cpanel Cloud Linux server
May 18th, 2013 by EZ linux · No Comments
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
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
Named backup or transfer files
June 5th, 2012 by EZ linux · No Comments
Most of the files are in the etc folder.
Tags: Cheat Sheets · Cpanel and WHM · Linux Back Up · Linux Operating Systems · Linux Security
Converting CentOS 5.x or 6.x to CloudLinux (with cPanel & WHM installed)
February 11th, 2012 by EZ linux · No Comments
Converting CentOS 5.x or 6.x to CloudLinux (with cPanel & WHM installed) If you wish to convert from CentOS 5.x or 6.x to CloudLinux, have already installed cPanel & WHM, and own an IP-based CloudLinux license, run these commands: /usr/local/cpanel/cpkeyclt /usr/local/cpanel/bin/cloudlinux_system_install -k reboot /usr/local/cpanel/scripts/easyapache –build If you wish to convert from CentOS 5.x or 6.x [...]
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
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
add a 404 page to each website on a cpanel server
December 28th, 2011 by EZ linux · No Comments
#!/usr/bin/perl # cPlicensing.net – scripts Copyright(c) 2003 cPlicensing.net. # All rights Reserved. # support@cPlicensing.net http://cPlicensing.net # Version: 0.02 print “Starting Scan…\n”; while(@USERS=getpwent()){ if (-d “$USERS[7]/public_html”) { if (-f “$USERS[7]/public_html/404.shtml”) { print “$USERS[0] 404.shtml exists\n”; } else { print “$USERS[0] creating 404.shtml…”; open(FILE,”>$USERS[7]/public_html/404.shtml”) or die “Unable to create file: $!”; close(FILE); chmod(0644, [...]
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
Backup cleaner script for cpanel
December 28th, 2011 by EZ linux · No Comments
#!/usr/bin/perl # cPlicensing.net – scripts Copyright(c) 2003 cPlicensing.net. # All rights Reserved. # support@cPlicensing.net http://cPlicensing.net # Unauthorized copying is prohibited #Version: 0.01 use POSIX; $delete_old = ’1′; #0 or 1, set to 1 to remove old account backups if($ARGV[0] eq “-d”) { $delete_old = ’1′; } $|++; POSIX::nice(19); print “Reading Backup Config…”; open(CPBACK,”/etc/cpbackup.conf”) or [...]
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
Manually changing an IP in Linux
December 17th, 2011 by EZ linux · No Comments
It’s pretty easy actually. Just go to this directory: /etc/sysconfig/network-scripts Then you will see a file for eachnetwork port, for example my server is: ifcfg-eth0 and ifcfg-eth1 I already have the ifcfg-eth0 set up from the install but I want to use the second one for back ups so I just opened the file and [...]
Tags: Cpanel and WHM · Hardware · Linux Drivers · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks · Ports
The skinny on raid differances
November 28th, 2011 by EZ linux · No Comments
We refer raid 5 but if you have remote back ups on the server then raid 0 will get you the best performance between several hard drives. Keep in mind raid still can fail even with the same data going to several hard drives and this will slow your system down. Hardware raid is much [...]
Tags: Hardware · Linux Back Up · Linux Security
