How to bind a range of IP’s in Redhat based linux
How to bind a range of IP’s in Linux This method is used by Redhat Linux based servers (Centos/RedhatEnterprise/FedoraCore). Create a file called /etc/sysconfig/network-scripts/ifcfg-eth0-range0 And in the file place these 3 lines but change the IP’s to match YOUR assigned range. ## Start IPADDR_START=67.18.xxx.xxx IPADDR_END=67.18.xxx.xxx CLONENUM_START=0 # Example | IPADDR_START=67.18.333.440 # Example | IPADDR_END=67.18.333.444 # Example | CLONENUM_START=0 ## END The CLONENUM_START should be the number at which the alias interfaces should start. If you add your 5 IP’s to […]
Read MoreLinux Memory Management
Scenario: Customer is concerned that only 100MB of their 2GB of memory is as unused or free when running the free command. However, no processes appear to be consuming large amounts of memory, and the server is not running slow. Cause: This is not a problem, but rather a result of the way linux manages its memory. On boot linux will typically display a large amount of free memory, as no processes have started to address it yet. Once processes […]
Read MoreAdmin account locked out of Plesk
If the Plesk admin account becomes locked due to multiple failed logins, you have two options. The first is to wait till the lockout automatically resets (15 to 30 minutes) or use the following comands. Redhat, once connected via SSH as root: #mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e ‘DELETE FROM lockout’ or #mysql -u admin -p Admin_password #use psa; #delete from lockout where login = ‘admin’; Be sure to replace “Admin_Password” with your current admin password for Plesk. Windows, once […]
Read MoreHow to add GD support to PHP on a Linux server with Plesk
Adding GD graphic libraries support to php on your linux server with Plesk is relatively simple. First, log into your server using ssh to get to a command line prompt. Second, type the following command to install a version of php with GD support: up2date php-gd Third, restart your web service with this command: service httpd restart That is it. Your web server is now runing php with GD.
Read MoreHow do I retrieve the Plesk control panel password?
You can always get the Plesk password if you have Administrative access to the server. If you have also lost administrative access to the server, refer to [How do I reset the password on my server] For Windows, 1. From the Start menu, select Run. 2. Enter the following command: “C:\Program Files\SWsoft\Plesk\admin\bin\plesksrvclient.exe” -get For Linux, 1. Via SSH, run the following command: cat /etc/psa/.psa.shadow
Read MoreRootkit help
RootKit — Spyware and Junkware detection and removal tool Go to Rootkit Hunter homepage, and download the latest release. http://www.rootkit.nl/projects/rootkit_hunter.html ## Get the latest source and untar # cd /usr/src/utils # wget http://downloads.rootkit.nl/rkhunter-<version>.tar.gz # tar xfz rkhunter-*.gz # cd rkhunter # ./installer.sh ## run rkhunter # rkhunter -c Setup automatic protection on System Reboot ## Edit /etc/rc.d/rc.local ## (or similar file depending on Linux version) ## Add the following lines at the bottom of the file /usr/local/sbin/apf –start /usr/local/ddos/ddos.sh -c
Read MoreFormatting and Mounting a new drive in Linux
I have installed a new slave hard drive. How do I format it and mount it? Solution: 1. Login as root: and type the following command: [root@34 root]# fdisk /dev/hdc 2. This screen will appear: The number of cylinders for this disk is set to 10011. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting […]
Read Morerndc: the key is invalid
Problem: ——— Issue: ——— While starting named, or when running /etc/rc.d/init.d/named status, you get the following error: rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid. Solution: ——- Fix: ——- Run rndc-confgen. running rndc-confgen would ouput something like this: # Start of rndc.conf key “rndc-key” { algorithm hmac-md5; secret “lYzcmf255w8BC6PHTSYCQA==”; }; options { default-key “rndc-key”; […]
Read More