Tutorial Install SpeedTest Server on VPS Centos 7

Share

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.

 

6 Comments

Leave A Reply