EZ Linux Admin random header image

All cpanel server should have the /var tmp folder symlinked to /tmp

March 2nd, 2010 by EZ linux · No Comments

Here is how, first remove the /var/tmp folder

rm -rf /var/tmp

Then add the symlink:

ln -s /tmp /var/tmp

→ No Comments Tags: Linux Images


Free /usr partition space by a symlink to domlogs

February 10th, 2010 by EZ linux · No Comments

First move the domlogs folder to the backup partition:

mv /usr/local/apache/domlogs /backup

Then create a symbolic link to it:

ln -s /backup/domlogs /usr/local/apache/domlogs

→ No Comments Tags: Linux Commands · Linux Tricks


Default MYSQL port

February 9th, 2010 by EZ linux · No Comments

The default MYSQL port is:

3306

→ No Comments Tags: Cheat Sheets · Linux Security · Ports


Path to PHP CLI in CPanel

February 9th, 2010 by EZ linux · No Comments

PHP CLI is installed by default by CPanel and placed in:

/usr/local/bin

or

/usr/bin

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


Location of SSL certs and keys for CPanel and users

February 9th, 2010 by EZ linux · No Comments

I was tracking down the location for each users SSL on a CPanel based server and wanted to post the locations here since they are a little off the beaten track. This is good to have around for when you want to clean out old certs and keys that are just jumbling your SSL trackers.

Here is the ssl key and certificate locations on a cpanel based server:

/usr/share/ssl/private
/usr/share/ssl/certs

If you still need to buy a SSL cert please consider the non-profit SSLCA

→ No Comments Tags: Cpanel and WHM · Linux Security


Who command

February 4th, 2010 by EZ linux · No Comments

This command will show who is logged into your system.

who

→ No Comments Tags: Linux Commands


The remote server didn’t report a correct md5sum of the archive

January 27th, 2010 by EZ linux · No Comments

Cpanel transfer error, server to serve single account.

Here is the error when I try to do a single account cpanel server to server transfer:

Testing dwhs.net for xfer streaming support….Not Supported!
Packaging the account: (/scripts/pkgacct username “” –split compressed –mysql 5.0)…

pkgacct started.
pkgacct version 8.3 – user : username – archive version: 3 – running with uid 0
We will be splitting the archive!!
Copying Reseller Config…Done
Copying Suspension Info (if needed)…Done
Copying SSL Certificates, CSRS, and Keys…Done
Copying Domain Keys….Done
Copying Counter Data….Done

Copying Bandwidth Data…….example.com
Copying Dns Zones…….example.com
Copying Mail files….Done
Copying frontpage files….Done
Copying proftpd file….Done
Copying www logs………….
Done
Copy userdata…………
Copy custom virtualhost templates…………
Done
Copying mailman lists….Done
Copying mailman archives….Done
Copying homedir………….
……………
……………

Done
52.38 GB free, need 0 Bytes
Warning: file location not sent.. guessing.. this may not work ….
Using the single archive method (/home/cpmove-username.tar.gz)!
Copy Destination: /home
Transfer Error
The remote server didn’t report a correct md5sum of the archive. Please ensure you selected the correct type of remote server.

Removing Copied Archive on remote server…. Done

I’m still not 100% sure what caused this but I chose to not use compression for the transfer and disabled CSF on both servers and it went fine.

My guess is the firewall on the remote server but I will have to wait for the next transfer to check which one causes this.

→ No Comments Tags: Cpanel and WHM


Show All Running Processes in Linux

January 21st, 2010 by EZ linux · No Comments

To see every process type:

ps -A

To see every process except what’s running from root type:

ps -U root -u root -N

→ No Comments Tags: Cheat Sheets · Linux Commands · Linux Tricks


Flushing iptables

January 21st, 2010 by EZ linux · No Comments

iptables can block many different things and often it will block good servers inside of a network. The best to see if it’s a iptables issue. Try to clean them out with this if you have CSF on the server:

csf -f

If you still have a issue try to stop iptables like this:

service iptables stop

→ No Comments Tags: Linux Commands · Linux Security · Linux Tricks


What’s the difference between CAT 5e patch cable and CAT 5e crossover cable?

January 19th, 2010 by EZ linux · No Comments

Keep in mind most new Routers and Switches have auto sensing and do not need a crossover cable. In fact cross over cables will soon be outdated.

[Q] What’s the difference between CAT 5e patch cable and CAT 5e crossover cable?

[A] The difference has to do with the wiring of the cable and the situation in which you will use the cable.

On a CAT 5e patch cable, the wiring configuration is identical on both ends of the cable.

On a CAT 5e crossover cable, the wiring of pins 1, 2, 3, and 6 are “crossed-over” to pins 3, 6, 1, and 2.

CAT 5e crossover cables are used in situations where two devices have the same interface, for example, connecting a hub to a hub, or a switch to a switch, or even when patching a hub or switch into a wallplate.

The most common use is to connect two PCs directly to each other, without the use of any kind of router, hub, or switch. This is called a peer-to-peer network, and is a low-cost solution to allow file and Internet sharing between two computers.

Cat5 cat6 and crossover example

→ No Comments Tags: Hardware