how to install ookla speedtest server in linux

By | February 28, 2022

Hardware & OS: Centos 7 or 8.
CPU : Above Dual Core.
Hard disk: Above 20GB
RAM Memory : 4GB or Above.
NIC : Minimum 1Gbps
Uplink Bandwidth: 100Mbps minimum.

Step-1 =Download Ookla files .
Note:-Login as a Root user and Create a directory in one of the existing directories of root and inside that directory, you should download these pre-required files and give it to execute level permission.

cd /
cd usr/
mkdir ookla
cd ookla/

chmod a+x

Step-2= Install the server daemon

Note: Once you will download the files inside the created directory then install them in the same directory.

./ install

Once the installation will be completed just restart the Ookla daemon .!

./ start
./ restart
./ stop

Step-3 = Install HTTPD & Allow the OOKLA Operational ports in firewall.

yum install httpd
systemctl enable httpd.service
systemctl restart httpd.service
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=dmz --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=8080/tcp
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --zone=public --permanent --add-port=5060/udp
firewall-cmd --reload
systemctl status httpd
firewall-cmd --list-ports

Step-4=Install & Verify PHP

yum install

OR,  You Can install the Php version 7 by given commands if above mirror link does not work.

yum install
yum install
yum-config-manager --enable remi-php71

If above doesnot work.

cd /var/www/html
  yum install yum-utils
  yum install php
  yum-config-manager --enable remi-php70
  yum-config-manager --enable remi-php71
  yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

php -v

//Now you can verify PHP version.

php -v

Step-5=Installing The HTTP Legacy Fallback .
  • Once you will download these files into your machine then extract it and upload them in the ookla server after creating a directory name called speediest inside the /var/www/html
  • Once you will place your HTTP Legacy files under /var/www/html/speedtest/upload.php Now your speedtest server should respond on your ip x.x.x.x:8080
  • if you have already created the subdomain and redirected to your speediest ip then the URL should work.
  • Go to your domain hosting and create subdomain and forward it to your IP address of the speedtest server and create a A records of your subdomain in your domain control panel.

    Note: The HTTP Legacy file only needs to be uploaded in the speed test server,Not in your hosting cpanel .

    Step-6=Upload The HTTP legacy file as it is given below.

[root@localhost ~]# cd /var/www/
[root@localhost www]# ls
cgi-bin html
[root@localhost www]# cd html/
[root@localhost html]# ls
crossdomain.xml speedtest
[root@localhost html]#

Once your subdomain redirection and A entry will be perfect then your speedtest server must respond on your domain name with respective ports (8080) and then it is ready for submission to ookla .So to test it out you can go to the browser and type this URL or

Once your domain redirection will be successful, you have to test it through Ookla server tester and the URL is given below . There may be chances it will show you https error but it is fine . make sure there should not be cross-domain errors. Find the URL of server tester given below and test your server .

Step-7=Once you will test if everything is correct then you have to open an account in ookla and you can submit the server and wait for the ookla to respond for making it publicly available.
Note:- Your speed test server must respond the ports 8080 and 5060 .

Leave a Reply

Your email address will not be published. Required fields are marked *