kill -s 9 [PID] Also try it without the -s if it won’t go.
Entries Tagged as 'Linux Software / Scripts'
kill a linux process that won’t die
February 3rd, 2012 by EZ linux · No Comments
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.
Tags: Linux Commands · 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
Tracking down the biggest folders
August 11th, 2011 by EZ linux · No Comments
du -ax –max-depth 1 /var/cpanel | sort -n | tail This is a great command to simply find what folders are the biggest in a directory. You can replace the /var/cpanel with any folder and it will list everything in there and how big they are in order. Once you find the big folder then [...]
Tags: Cheat Sheets · Cpanel and WHM · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks
Cleaning up /var
August 11th, 2011 by EZ linux · No Comments
Cpanel and linux leaves a lot of log files in /var After several years these can add up, especially in the cpanel/bandwidth folder. So a couple quick folder moves and symlinks can clean things up. This is assuming you have a /backup partition and some room in it. Moving the log folder mv /var/log /backup/ [...]
Tags: Cheat Sheets · Cpanel and WHM · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks
Remove Fantastico
June 26th, 2011 by EZ linux · No Comments
This short post is a response to the question I received from one reader that wanted to know how to remove completely from his Cpanel server Fantastico. Why would you want to do that? (assuming you have it already installed, it means you have a license also). Well, maybe the data center installed it by [...]
Tags: Cpanel and WHM · Linux Software / Scripts
setroubleshootd and SELinux is not considered compatible with cPanel
May 30th, 2011 by EZ linux · 1 Comment
The “setroubleshootd” process is included as part of SELinux. SELinux is not considered compatible with cPanel, and we recommend disabling it per our installation documentation: Disable SELinux security features For a fully successful installation you should disable SELinux. When installing a Red Hat or CentOS distribution, you will be able to use the graphical interface [...]
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
Cpanel based admin mail manager ( mailmanager )
October 27th, 2010 by EZ linux · No Comments
1. wget http://www.configserver.com/free/cmm.tgz 2. Untar the distribution: tar -xzf cmm.tgz 3. cd into the directory created and run the install script: cd cmm/ sh install.sh 4. Login to WHM and scroll to the bottom of the left hand menu and you should see “ConfigServer Mail Manage” If you want to uninstall, simply: rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi [...]
