All posts by Mohammad

How to Install Apache 2.2, PHP 5.6, MySQL 5.7 on CentOS 6

Today I am going to teach you the easiest way of installing a Webserver with Apache, PHP, and MySQL.

We are going to use Epel and Remi repositories on CentOS and configure our server. First of all, we should find the latest version of Epel and Remi packages from their sites :

http://dl.fedoraproject.org/pub/epel/6/x86_64/
http://rpms.famillecollet.com/enterprise/

After it, we will download the packages on our system and install them on the server.

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-6-8.noarch.rpm

After these packages are installed completely, we should activate these repositories on Yum configuration file.

nano /etc/yum.repos.d/remi.repo

Make sure that “[remi]” and “[remi-php56]” are enabled. It should look like as following.

[remi]
name=Remi’s RPM repository for Enterprise Linux 6 – $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php56]
name=Remi’s PHP 5.6 RPM repository for Enterprise Linux 6 – $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/php56/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/php56/mirror
# NOTICE: common dependencies are in “remi-safe”
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

We have to save the file and then edit the Epel repository to make sure it is enabled too.

nano /etc/yum.repos.d/epel.repo

It should be enabled as following :

[epel]
name=Extra Packages for Enterprise Linux 6 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Now we can start to install PHP, apache on our system.

yum clean all
yum update
yum install php php-mysql

After all these steps are done, we will install MySQL on our system.

wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm
yum localinstall mysql57-community-release-el6-7.noarch.rpm
yum repolist enabled | grep “mysql.*-community.*”
yum install mysql-community-server

It is now fully installed, we will start all services and will confirm the installed versions.

service mysqld restart
mysql –version
service httpd restart
php -v
httpd -v

If you have any question, please add a comment and I will get you back.

CentOS 6 crashed after restarting network

One of our dedicated servers, which is CentOS 6 based crashed today after I wanted to restart the network interface. Simply after running the following command

service network restart

The box has crashed and I had to reboot it. After server comes up, I have checked the logs to see what was wrong into the server. I have found it …

Continue reading CentOS 6 crashed after restarting network

How to speed up yum on centos

Yum is a great tool to install, remove and update packages on centos. As all of you may know yum uses the fastest mirror to download and install the packages on your dedicated server or your desktop computer.

Sometimes it comes to a slow connection between you and the current fastest mirror which is cached on yum, and you are getting a very low download speed for the packages.

Continue reading How to speed up yum on centos

WinMTR & MTR helping you to trace your network

Are you sometimes having trouble to load your website or access your dedicated server, or are you getting lags using your server SSH or Remote Desktop?

Are you looking for a solution to see packet loss and latency between two networks?

MTR / WinMTR will help you to make your life easier. You can install MTR on any dedicated server or any desktop pcs to track your outgoing network easier.

To install the MTR on Linux based systems, you can use yum or apt-get to get it installed. To install MTR on your windows system, you can download WinMTR from here, and install it on your windows system.

CentOS  :  yum install mtr -y
Ubuntu, Debian : apt-get install mtr -y

The usage of mtr is very easy and simple, you only have to run the following command to see the results.

mtr hugeserver.com

Instead of “hugeserver.com” you can put any other IP addresses or domain names to see the hops and the route your source server to your destination server.

If you want to see only the ip addresses and not the domain information ( rdns ) of them, you can click “n” during the program is running or simply use the following command

mtr -n hugeserver.com

You may change the packet size to something else with adding the package size after hostname or ip address.

mtr -n hugeserver.com 100

This tool can help you to determinate any packet loss between two network.

Thanks

How to use IPMITool on Linux

You are managing a dedicated server from Internet, and want to access to IPMI? You have colocated a dedicated server in a datacenter and you are looking to have a way to cut off the expensive remote hand fees for reboots, KVM installation and correction? This can be easily done over IPMI.

But sometimes it is common to happen that your IPMI is not accesable over web interface. This issue may have several reasons. Maybe your IP Configuration is not correct, or maybe the IPMI has crashed, etc …

Continue reading How to use IPMITool on Linux

HugeServer Networks, LLC announces new Los Angeles Location

Los Angeles, CA – (HugeServer Networks, LLC) Colocation facility & Dedicated server provider HugeServer Networks (http://www.hugeserver.com) is happy to announce the deploying of their latest location in Los Angeles by Equinix LA1. This new facility adds to already comprehensive and robust network of data centers and space that Hugeserver Networks operates throughout the continental USA. In addition to their headquarters in Los Angeles , Hugeserver Networks operates locations in Los Angeles and Atlanta. The new Los Angeles location provides yet another option for customers who need centrally located data center services in the USA.

HugeServer Networks’s Los Angeles location is highly connected with bandwidth provided by the following carriers:

Level 3, Global Crossing, Bandcon, Cogent, Intelliquent (old Tinet and Neutral Tandem), and nLayer
Our peers are Pacnet, Japan Telecom, Xeex, PCCW, KDDI and ANY2.

In addition to a great premium bandwidth mix, the facility also boasts 24×7 monitoring & 24×7 on-site staff. Power is fully redundant.

About Hugeserver Networks @ Equinix ™

Platform Equinix is where global business and growth connect. The platform provides customers data centers with ample room for growth in reliable, well connected sites that enables them to reach their customers globally so that they can collaborate to accelerate growth.

The Equinix global service delivery platform consists of International Business Exchange™ (IBX®) data centers located in 38 metropolitan areas across the Americas, EMEA, and Asia-Pacific. These International Business Exchange™ (IBX®) data centers serve as a reliable and secure destination for the world’s most powerful networks and companies where they can leverage Equinix’s interconnection and exchange services. Equinix’s dynamic ecosystem enables companies to connect directly to their strategic partners in order to optimize the performance of their content and applications. It’s what we do every day – without compromise.

About Hugeserver Networks, LLC

Hugeserver Networks, LLC is one of the world wide network and dedicated servers providers based in California
. The company has began its business since 2008 under official name “Hugeserver”. The company has experienced exceptional growth and currently hosts nearly 1,000 dedicated servers and co-located machines.

You can have more photos on our facebook page : https://www.facebook.com/HugeServer

Dedicated Server Plans : http://www.hugeserver.com/dedicated-servers/los-angeles.html

More information : Sales@Hugeserver.com

Critical Vulnerability in Windows RDP

Hello All,

This is a notice of an active security alert which could pose a threat to your server with operating system of Microsoft Windows. Please see the alert below:

Yesterday, during Microsoft’s Patch Tuesday they announced a patch for a critical vulnerability in Windows Remote Desktop.

If exploited, the vulnerability would allow anyone to remotely run commands on your server.

This bug affects all versions of Windows (XP – 7/2008 R2) If you have a server or workstation running RDP please patch it now. There currently is no known exploit, but Microsoft believes there will be one in the next 30 days.

However, it is very likely there will be something sooner.

A temporary fix is to enable NLA (Network Layer Authentication). This would require the attacker to have valid login credentials, however if successfully exploited the remote commands would run as the SYSTEM user and not the user authenticated.

The patch is available from Windows Update and there are manual patches linked below.

http://technet.microsoft.com/en-us/security/bulletin/ms12-020 http://blogs.technet.com/b/srd/archive/2012/03/13/cve-2012-0002-a-closer-look-at-ms12-020-s-critical-issue.aspx

Thank you for your review.