Install And Enable Epel Repo On Centos

Hi friend, this very important if you have VPS CentOS, are you know EPEL ? EPEL is (Extra Packages for Enterprise Linux) by adding EPEL repo in your server’s repository source, you’ll be able to install lots of open source packages via Yum.

EPEL  is an open source and free community based repository project which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux.

HOW TO INSTALL EPEL REPO

Method #1

Step 1 – Login to your server as root or as a user with root privilege (sudo) via your favorite SSH client like Putty, Terminal, BitVisa, etc.

Step 2 – For easier install, firstly try using yum command:

yum -y install epel-release 

Step 3 – Now refresh repositories using this simple command:

yum repolist
screenshot:
If that does not work, try this..
Method #2
Step 1 – Download EPEL .rpm file to tmp folder
cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
ls *.rpm

Step 2 – Then issue command below to install the EPEL .rpm file:

yum install epel-release-7.noarch.rpm

Step 3 – Now you have to also verify that the EPEL repository is already installed successfully and ready to use:

yum repolist

HOW TO ENABLE AND USE EPEL REPO WITH YUM

Step 1 – The main command to use with yum is:

<code class="shell plain">yum --enablerepo=epel [</code><code class="shell functions">command</code><code class="shell plain">] [package name]</code>

Replace the [command] part with one of these:

– install
– update
– check-update
– upgrade
– remove or erase
– list
– provides or whatprovides
– search
– info
– clean
– shell
– resolvedep
– localinstall
– localupdate
– deplist

While [package name] can be replaced with the name of the package.

Example, this command below will display information about a package called nginx, the world’s most popular fast Web server:

yum --enablerepo=epel info nginx

screenshot:

Step 2 – Now finally install the package you want to. And the command for that is:

yum --enablerepo=epel install [package name]
yum --enablerepo=epel install nginx

Tutorial Install SpeedTest Server on VPS Centos 7

My friend asking to me how to create web like Speedtest.Net , in fact many sourcode how to create website speedtest using HTML 5 PHP Javascript, etc. on CodeCanyon.Net GitHub, but for now i’ll show how step by step make speedtest network by using source code SpeedTest Mini, Let’s get started .

WHAT YOU NEED:

  1. A VPS with at least 512MB of RAM.
  2. Install CentOS (Recomend CentOS 7) but you can do on CentOS 6 or above
  3. Putty or any of your favorite SSH client.
  4. About 10 minutes of your time.

INSTALL APACHE AND PHP

Login to your VPS:

 

Step 1 – Now grab Speedtest Mini package using wget:

Step 2 – You gonna need a webserver on it and Apache will be perfect for that job. So let’s start to install it. Issue this command:

yum install httpd -y

 

Step 3 – Next, install PHP and required PHP modules:

yum install php php-mysql php-gd php-mcrypt -y

 

DOWNLOAD AND INSTALL SPEEDTEST MINI

Step 1 – Now grab Speedtest Mini package using wget:

wget http://c.speedtest.net/mini/mini.zip

 

Step 2Unzip its package and move it to web directory. Simply follow command lines below. Copy-paste each line one by one, not all at once:

yum install unzip -y
unzip mini.zip
mkdir -p /var/www/html
cp -rRfv mini /var/www/html/

 

Step 3 – Next, go to the web directory and rename index-php.html to index.html:

cd /var/www/html/mini
mv index-php.html index.html

 

Step 4 – Finally, start Apache with this classy CentOS 7 command:

systemctl start httpd

 

Finally, you can run it for the very first time. Open up your favorite web browser and give it a try. You can access it via this url:

http://x.x.x.x/mini or http://IP-VPS/mini

replace that x.x.x.x with your own VPS IP address.