Entries by Andrej OSmicro

How to change the primary IP addres of a WHM/cPanel server

Download PDF

How to change the primary IP addres of a WHM/cPanel server This is for CentOS/RHEL based servers. Steps in WHM: Log into WHM and go to Basic cPanel & WHM Setup Change the Primary IP here with the option that says “The IP address (only one address) that will be used for setting up shared IP virtual […]

How to change SSH port on cPanel Linux server

Download PDF

1. Login to the server through SSH (port 22 by default) 2. Type this command vi /etc/ssh/sshd_config 3. Press “i” on the key to enable editing mode. 4. Where it says #Port 22 change to Port 123 (for example) 5. Now pres “esc” button on the keyboard and type :wq! to save the file and […]

cPanel how to move mysql data folder location

Download PDF

1. Make a full mysqldump file: Code: mysqldump –all-databases | gzip > /home/alldatabases.sql.gz 2. Uncheck monitor in WHM > Service Manager for Mysql and save the area 3. Stop MySQL Code: /etc/init.d/mysql stop 4. Make the directory for MySQL in /home, move it and symlink it: Code: mkdir /home/var_mysql mv /var/lib/mysql /home/var_mysql chown -R mysql:mysql […]

How to upgrade GoDaddy VPS to CentOS 6.5

Download PDF

CentOS 6.5 has been released and brings many new features and security fixes. In my case, I needed to upgrade from CentOS 6.4 to CentOS 6.5 because I needed php-5.4.24 (provided by remi repository), which required openssl-1.0.1 , introduced in CentOS 6.5 and unavailable in CentOS 6.4. This HowTO explains how to upgrade to CentOS 6.5 on GoDaddy VPS (virtual private server, […]

How to compact Linux VM vhd size in Microsoft Hyper-V

Download PDF

In time Windows and Linux virtual machines running on Hyper-V virtualisation platform will grow in size even if the large part has been freed up within the virtual machine itself. This is because Hyper-V is not smart enough to auto compact the vhd (virtual hard disk) on the fly – to recognise real space usage […]

How to clean virus and malware infections Tips & Tricks

Download PDF

Let’s get straight to the point. Depending on the malware type, you may get away only by using the infected computer to perform self-cleaning.But if you suffer from a more sinister intrusion type, you will need another computer with an internet connection and a USB stick or any other type of removable storage to copy […]

How to reset Cisco Router to Factory Settings

Download PDF

Method 1 This method uses the config-register 0x2102 command in global configuration mode. Check the configuration register on the router by issuing the show version command. The configuration register setting is displayed in the last line of the show version command output and should be set to 0x2102. If this is not the case, enter the config-register 0x2102 command once in global configuration mode. router#configure […]

Replace Dell PERC H310 to H710 Raid Controller without losing data

Download PDF

I have successfully upgraded Dell PERC H310 Raid Controller with H710 without losing any data. The process was very simple, pretty much plug and play. Before the upgrade I tried to consult with the Dell techs, but they had no idea about the process and its outcome since apparently no one ever had a need […]

How To Setup Server 2012 as a Domain Controller

Download PDF

OVERVIEW In Windows Server 2012, dcpromo has been deprecated. In order to make the windows server 2012 domain controller we will install ADDS (Active Directory Domain Services) role from the server manager on Windows Server 2012. First we will change the server name let say server2012dc and  the IP address 10.10.21.1 (try to avoid using default 192.168.0.1) INSTALLING AD […]

Can’t create files on the C drive of Windows 8 A required privilege is not held by the client

Download PDF

A required privilege is not held by the client when you try to create a file or folder on the c drive of Windows 8. Do not turn UAC off from Windows 8 control panel. Instead, go to registry and do the following: Press keys “Windows Key + R”, type regedit Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA Update the […]