SpeedTest.net has been recently being a global standard for broadband speed test. Many users use their service to test how fast their internet connection is. You know that you can even host your own Speedtest webapp using its Mini version? Well, you can! Simply follow very easy steps below:
There is a video, or just go straight to the old fashion way, there are steps right below it.
INSTALL APACHE AND PHP
Step 1 – 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:
|1||yum install httpd -y|
Step 2 – Next, install PHP and required PHP modules:
|1||yum install php php-mysql php-gd php-mcrypt -y|
DOWNLOAD AND INSTALL SPEEDTEST MINI
Step 1 – Now grab Speedtest Mini package using wget:
Step 2 – Unzip its package and move it to web directory. Simply follow command lines below. Copy-paste each line one by one, not all at once:
p.s: If you not install unzip yet, you can install it with this command:
yum install unzip -y
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:
mv index-php.html index.html
Step 4 – Finally, start Apache with this classy CentOS 7 command:
|1||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:
replace that x.x.x.x with your own VPS IP address.