Speedtest is used to check the speed of uploading and downloading in the server. You can also test the network speed of your server too. It is quite simple to install Speedtest in server.
You can even host your own Speedtest webapp using its Mini version. Simply follow very easy steps below:
Prequisities:
- A mini VPS with at least 512MB of RAM.
- Install CentOS 7 on it.
- Putty or any of your favorite SSH client.
- About 15 minutes of your time with a cup of tea.
install Apache and php:
Step 1 -Login to your VPS
Step 2 – You need to have an Apache web-server on it . So let’s start to install it. Issue this command:
yum install httpd -y
Step 3 – Next, we need to install PHP and required PHP modules:
yum install php php-mysql php-gd php-mcrypt -y
DOWNLOAD AND INSTALL SPEEDTEST MINI
Step 1 – Now get Speedtest Mini package using wget:
wget http://c.speedtest.net/mini/mini.zip
Step 2 – Unzip its package and move it to web directory. Simply follow the commands below:
unzip mini.zip mkdir -p /var/www/html cp -rRfv mini /var/www/html/
If you haven’t install unzip yet, you can install it with this command:
yum install unzip -y
Step 3 – 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 service with this 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
Replace that x.x.x.x with your own VPS IP address.
That’s all to do, Please Give your opinion below if you experience any issues or to discuss your ideas and experiences.