Advertisement
Home arrow Blog
Blog - Content Section Layout
Changing the SSH port on cPanel Servers
Written by wiredgorilla   
Thursday, 20 May 2010

To change the SSH port number login as root, and edit /etc/ssh/sshd_config

Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file.

Once done, run:

/etc/init.d/sshd restart

Now start a new SSH session (don’t close your existing one), to make sure that you can get in.

 
Fix corrupted RPM database on CentOS 5
Written by wiredgorilla   
Wednesday, 28 October 2009

If rpm / yum command hangs during operations or you see error messages - it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:

Command to rebuild rpm database

rm -f /var/lib/rpm/__db*
rpm --rebuilddb -v -v

 

Read rpm / yum man pages for more information

 
How can I repair corrupt MySQL tables?
Written by wiredgorilla   
Friday, 12 September 2008
How can I repair corrupt MySQL tables?
Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables.
Read more...
 
Changing hostname and IP on a CentOS server
Written by wiredgorilla   
Friday, 12 September 2008

OK, so you are ready to move your server to a different datacenter with a different IP C class.

Here are a few things you need to change

Last Updated ( Friday, 30 January 2009 )
Read more...
 
CentOS - what happened to netconfig in 5.1
Written by wiredgorilla   
Wednesday, 10 September 2008

For whatever reason CentOS decided to drop netconfig and renamed it to

system-config-network

 

 
How to mount and unmount a drive in linux
Written by wiredgorilla   
Tuesday, 26 August 2008

How To Mount A Drive In Linux

Initially you wanna check the hard drives on your system

fdisk -l

so now you now whats being seen by the system
 

Command Line

mount /dev/partitionId /some/mounting/point
 
for example
mount /dev/sdb /backup

The mounting point path must already be created with proper permissions. So a more likely flow of commands would be below:

Command Line

mkdir /some/mounting/point
chmod 777 /some/mounting/point
mount /dev/partitionId /some/mounting/point
 
for example:
mkdir /backup
chmod 777 /backup
mount /dev/sdb /backup
 
Now you just need to add the addon hard drive into fstab to be booted on startup as well
 
nano /etc/fstab
 

How To Unmount A Drive In Linux

Command Line

umount /dev/partitionId

This command is very easy to type wrong. It is NOT unmount. Take another closer look if thats what you saw at first. It is umount -- no n here!

Last Updated ( Tuesday, 26 August 2008 )
 
Downgrading MySQL5 to MySQL4.1 in cPanel
Written by wiredgorilla   
Monday, 25 August 2008

For whatever reason , some people still want to run the old version of MySQL4.1 in there new cPanel servers, which seems a little issue , as the default database version in new cPanel server installs is MySQL5.

Here are the simple steps to downgrade the database (this should only be done on a new server without any account on it yet)

 

Last Updated ( Monday, 25 August 2008 )
Read more...
 
Linux sub directory size info
Written by wiredgorilla   
Sunday, 20 July 2008

Need to know the exact size of your subdirectories in Linux?

Just go to the directory , like cd / and try this

du -cksh *

 

 
Easyapache failing on CentOS server
Written by wiredgorilla   
Sunday, 20 July 2008

Had an issue with one on our CentOS cPanel servers running 64 bit and cPanels easyapache upgrade. The folks at cPanel helped out with their usual professional response

Last Updated ( Sunday, 20 July 2008 )
Read more...
 
How to find MAC address in CentOS
Written by wiredgorilla   
Saturday, 19 July 2008

 Open SSH and type the following and press Enter:

/sbin/ifconfig | grep -i hwaddr

The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card's MAC Address

 
Preparing server for bare metal restore using R1Soft Live Rescue CD
Written by wiredgorilla   
Saturday, 28 June 2008

Follow these steps to prepare a system for a bare metal restore. 

1. Put the R1Soft Live Rescue CD into the machine you are going to restore to, and boot.

    Press enter at the splash screen.

2. Once you are logged in, type

    netconfig

   and follow the prompts to configure the network settings. Start SSH if you need to access the machine remotely.

3. Type ping google.com to test the network connectivity.

Last Updated ( Sunday, 27 July 2008 )
Read more...
 
cPanel - Manualy back up and transfer an account via SSH
Written by wiredgorilla   
Sunday, 22 June 2008

Sometime accounts are to big to transfer via the WHM transfer feature.

Below you can find some steps to do so manually 

Last Updated ( Sunday, 22 June 2008 )
Read more...
 
Problems with CenotOS5 - cPanel and BIND
Written by wiredgorilla   
Sunday, 22 June 2008

If you have issues with cPanel running CentOS5 with BIND then the easiest way is to downgrade BIND to 9.2.4

The reason you're having trouble is because CentOS 5 uses bind-9.3 and CentOS 4 uses bind-9.2 - The changes between these versions is significant enough that cPanel won't work with it properly.

For instance by default there is no /etc/named.conf file created when bind-9.3 is installed and the default named.conf file for bind-9.3 is significantly different than in older versions.

Until the code is updated to work with bind-9.3, I have found the workaround to be to remove bind-9.3 packages and install bind-9.2 packages as follows:
 

Last Updated ( Sunday, 22 June 2008 )
Read more...
 
kernel yum upgrade
Written by wiredgorilla   
Saturday, 21 June 2008

check what kernel you are running at the moment

uname -a

and to upgrade your kernel

yum update \kernel*

check if your kernel is added to grub

cat /boot/grub/grub.conf

and then reboot

shutdown -rf now

Last Updated ( Sunday, 20 July 2008 )
 
Installing SSH public key for extra security on your Linux server
Written by wiredgorilla   
Saturday, 21 June 2008

Log into SSH

mkdir $HOME/.ssh
chmod -R og= $HOME/.ssh
cd .ssh
nano authorized_keys2

Add your key you created with PuttyGen , make absolutly sure you r key is in one line ONLY , otherwise it wont work!

Adjust your  sshd_config

nano /etc/ssh/sshd_config

to

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys2

Last Updated ( Sunday, 20 July 2008 )
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Results 1 - 30 of 324