How to create a Windows 8 VM quickly?

Use Convert-WindowsImage and create a Windows 8 VM quickly.

Written in PowerShell, Convert-WindowsImage is a tool to quickly create a Windows installation on a VHD virtual hard disk or VHDX, from a Windows installation ISO file.

This tool can be used from the command line or GUI, it’s your choice. No installation required since it’s a PowerShell script.

In terms of compatibility, it can be used in Windows 8, but is recommended for Windows 8.1 and Windows Server 2012 R2. Then you can work with the ISO Supported OS, specifically Windows 7 / Windows Server 2008 R2 and newer OS.

read more

Posted in FAQ | Tagged , , , | Comments Off

How to use ifconfig under CentOS 7?

ifconfig As we all know that recently CentOS released a new version “7”, this new stable version has its own share of change and among them, the fact that the ifconfig control no longer present in the native system. So if you have old habits, then you may want to find this option in this newer version. And I am sure you probably not the only one trying to reinstall it on CentOS 7.

So the first question you may ask whether ifconfig is already available in the package?

read more

Posted in FAQ | Tagged , , | Comments Off

Upgrading to PHP 5.5

Today we will see how to upgrade PHP to the latest version. FYI, PHP 5.5.8 released on 9th January 2014. Here, we will perform the operations on CentOS 6 and Debian 7 with stable version of PHP 5.4.4. Version stable is the version that we find by default when we install PHP without changing the deposits anyway.

Attention, it is very important to take a full backup of the server or a snapshot if it is a virtual machine before performing process of upgrade. Note: it is possible to quickly see the version of PHP installed on your machine through the following command line.

php –v

When you use the standard version, you will see the following type of result on CentOS


Through this command you will clearly see which version is currently installed on the machine. However, make sure PHP CLI package is installed. If it’s not installed then you can install it via command line. For example:

sudo apt-get install php5-cli

It is necessary to have CLI package because PHP binary requires being included to your path. When you run php –v command and gets not output, then it’s certain that it’s not in your path.

You can also check the path with “echo $PATH”. If the directory where the PHP binary is installed is not in your path, then you can set it with export; for example: PATH=$PATH:/path/to/php.

Uninstalling PHP

First, uninstall the current PHP version so it will not conflict with newer version’s packages. Note: you must save your precautionary configuration files in a directory. We will see now how to create that directory.

mkdir /root/configphp
cp -Rf /etc/php* /root/configphp

Then delete the version of PHP on your machine by using below command in CentOS:

yum remove php php-cli php-common && yum clean all

To uninstall PHP under Debian:

apt-get remove --purge php5

Download deposits

Now download and install the latest version deposit containers from PHP.

• Download and process deposits under CentOS

Yum that is able to download and install via its deposits option

• How to download Debian repositories

Under Debian, include two lines of deposits which are simple URL containing the deposits file (/etc/apt/source.list)

echo “deb wheezy-php55 all” >> /etc/apt/source.list
echo “deb-src wheezy-php55 all” >> /etc/apt/source.list

Now download and then install the signing key deposit which avoids errors during installation and updates:

apt-key add dotdeb.gpg

And now update the deposits in question:

apt-get update

read more

Posted in Server Management and Troubleshooting | Tagged , , | Comments Off

Windows Server 2012 R2 Cluster Setup

The aim of this article to present two types of solutions offered by Microsoft in Windows Server 2012 R2: 1) Cluster load balancing at the network level 2) Microsoft Cluster Service for failover-cluster.

Both architectures allow cluster to make sure high availability of services installed on Windows servers. However, it’s not possible to combine both of these services of clusters on the same Windows server node.

FYI, cluster refers to a group of servers called as server farm or cluster of servers. Servers in cluster are configured to work together to achieve the goal of high availability to meet a real need in the business.

read more

Posted in Load Balanced Servers | Tagged , , | Comments Off

What is lsyncd?

Lsyncd combines the advantages of inotify with the functionality of Rsync. This means lsyncd holds a remote copy of a directory permanently to the state that corresponds to the local directory.

Technically lsyncd begins at the start with a full Rsync run, but sets simultaneously on all the monitored directories and subdirectories inotify watches. All changes to the data reports through Kernel to lsyncd. This collects these messages and then initiates at short intervals for the changed files and re-run Rsync.

read more

Posted in FAQ | Tagged , | Comments Off