{"id":13018,"date":"2019-03-30T02:49:44","date_gmt":"2019-03-30T02:49:44","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13018"},"modified":"2019-03-30T02:49:44","modified_gmt":"2019-03-30T02:49:44","slug":"setup-your-own-speedtest-mini-server-to-test-internet-bandwidth-speed","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/30\/setup-your-own-speedtest-mini-server-to-test-internet-bandwidth-speed\/","title":{"rendered":"Setup Your Own \u201cSpeedtest Mini Server\u201d to Test Internet Bandwidth Speed"},"content":{"rendered":"<p>Overwhelmed with the response we got on the previous article on how to test the bandwidth speed using command line tool\u00a0<strong>speedtest-cli.py<\/strong>, this tutorial aims at providing you with the knowledge of setting your own\u00a0<strong>speedtest mini server<\/strong>\u00a0in 10 minutes.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/check-internet-speed-from-command-line-in-linux\/\" target=\"_blank\" rel=\"noopener\">Check Your Internet Speed from Command Line Using \u2018Speedtest-CLI\u2019 Tool<\/a><\/li>\n<\/ol>\n<p><strong>Speedtest.net<\/strong>\u00a0mini is a speed testing application which is used for hosting speed test server (Mini) on your own site\/server. Another application from\u00a0<strong>NetGuage<\/strong>\u00a0serves the same purpose which primarily is designed for Corporate sites.<\/p>\n<p><strong>Speedtest.net Mini<\/strong>\u00a0is available for free and it\u2019s compatible with all major web servers. It measure ping by sending HTTP request to selected server and measures the time till it get response. For checking upload and download speed, it uploads and downloads small binary files from web server to client and vice-versa for upload.<\/p>\n<p><strong>Note<\/strong>: Speedtest Mini server may not be used for commercial use, nor on any commercial sites.<\/p>\n<h3>Install Speedtest Mini Server on Linux<\/h3>\n<p>Download speedtest Mini Server from the link below. You need to Login before you can download. If you don\u2019t have an account, register first.<\/p>\n<ol>\n<li><a href=\"http:\/\/www.speedtest.net\/mini.php\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/www.speedtest.net\/mini.php<\/a><\/li>\n<\/ol>\n<p>Once downloaded\u00a0<code>mini.zip<\/code>\u00a0file, you need to unzip the archive file.<\/p>\n<pre># Unzip mini.zip\r\n<\/pre>\n<p>Now you need to determine on which server you want to host the application. You can choose any of the following as your hosting server \u2013 PHP, ASP, ASP.NET and JSP. Here we will be using PHP and Apache as Server to host.<\/p>\n<p>Let\u2019s install Apache, PHP and all needed PHP modules using the following commands.<\/p>\n<h5>On Debian\/Ubuntu\/Mint<\/h5>\n<pre># apt-get install apache2\r\n# apt-get install php5 php5-mysql php5-mcrypt php5-gd libapache2-mod-php5\r\n<\/pre>\n<h5>On RedHat\/CentOS\/Fedora<\/h5>\n<pre># yum install httpd\r\n# yum install php php-mysql php-pdo php-gd php-mbstring\r\n<\/pre>\n<p>After installing Apache and PHP with all required modules, restart the Apache service as shown below.<\/p>\n<pre># service apache2 restart\t\t[On Debian\/Ubuntu\/Mint]\r\n# service httpd restart\t\t\t[On RedHat\/CentOS\/Fedora]\r\n# systemct1 restart httpd\t\t[On RHEL\/CentOS 7.x and Fedora 21]\r\n<\/pre>\n<p>Next, create a\u00a0<code>phpinfo.php<\/code>\u00a0file under Apache default directory, that we will use to check if PHP is rendering correctly or not.<\/p>\n<pre># echo \"&lt;?php phpinfo(); ?&gt;\" &gt; \/var\/www\/phpinfo.php         [On Debian\/Ubuntu\/Mint]\r\n<\/pre>\n<pre># echo \"&lt;?php phpinfo(); ?&gt;\" &gt; \/var\/www\/html\/phpinfo.php [On RedHat\/CentOS\/Fedora]\r\n<\/pre>\n<p><strong>Note<\/strong>: The default Apache root directory may be\u00a0<strong>\/var\/www\/<\/strong>\u00a0or\u00a0<strong>\/var\/www\/html\/<\/strong>, please check the path before moving forward\u2026<\/p>\n<p>Now we will be uploading the extracted folder\u00a0<code>mini<\/code>\u00a0to the Apache default directory location.<\/p>\n<pre># cp -R \/[location to extracted folder]\/mini \/var\/www\/       [On Debian\/Ubuntu\/Mint]\r\n<\/pre>\n<pre># cp -R \/[location to extracted folder]\/mini \/var\/www\/html   [On RedHat\/CentOS\/Fedora]\r\n<\/pre>\n<p>We need to rename a file hence Long list the contents of directory that was uploaded to the Apache directory\u00a0<strong>\/var\/www\/<\/strong>\u00a0or\u00a0<strong>\/var\/www\/html<\/strong>.<\/p>\n<pre># ls -l \/var\/www\/mini\r\n\r\nOR\r\n\r\n# ls -l \/var\/www\/html\/mini\r\n<\/pre>\n<div id=\"attachment_11925\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Content-of-Mini-Server.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-11925\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Content-of-Mini-Server-620x185.jpeg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Content-of-Mini-Server-620x185.jpeg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Content-of-Mini-Server.jpeg 723w\" alt=\"Contents of Mini Server\" width=\"620\" height=\"185\" aria-describedby=\"caption-attachment-11925\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-11925\" class=\"wp-caption-text\">Contents of Mini Server<\/p>\n<\/div>\n<p>Now rename\u00a0<code>index-php.html<\/code>\u00a0to\u00a0<code>index.html<\/code>\u00a0only and leave other files untouched.<\/p>\n<pre># cd \/var\/www\/\r\nOR\r\n# cd \/var\/www\/html\/\r\n\r\n# mv mini\/index-php.html mini\/index.html\r\n<\/pre>\n<div id=\"attachment_11926\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Rename-Index-File.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-11926\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Rename-Index-File-620x121.jpeg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Rename-Index-File-620x121.jpeg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Rename-Index-File.jpeg 725w\" alt=\"Rename Index File\" width=\"620\" height=\"121\" aria-describedby=\"caption-attachment-11926\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-11926\" class=\"wp-caption-text\">Rename Index File<\/p>\n<\/div>\n<p><strong>Note<\/strong>: If you\u2019re using any other platform as your host, you need to rename respective file as shown below.<\/p>\n<ol>\n<li>Rename index-aspx.html to\u00a0<strong>index.html<\/strong>, if you are using ASP.NET as your host.<\/li>\n<li>Rename index-jsp.html to\u00a0<strong>index.html<\/strong>, if you are using JSP as your host.<\/li>\n<li>Rename index-asp.html to\u00a0<strong>index.html<\/strong>, if you are using ASP as your host.<\/li>\n<li>Rename index-php.html to\u00a0<strong>index.html<\/strong>, if you are using PHP as your host.<\/li>\n<\/ol>\n<p>Now point your web browser to your local server IP address, which typically in my case is:<\/p>\n<pre>http:\/\/192.168.0.4\/mini\r\n<\/pre>\n<div id=\"attachment_11927\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Speedtest-Mini-Server-Testing.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11927\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Speedtest-Mini-Server-Testing.jpeg\" alt=\"Speedtest Mini Server Testing\" width=\"343\" height=\"195\" aria-describedby=\"caption-attachment-11927\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-11927\" class=\"wp-caption-text\">Speedtest Mini Server Testing<\/p>\n<\/div>\n<p>Click Begin test and it start testing the speed Locally.<\/p>\n<div id=\"attachment_11928\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Test-Internet-Speed-Locally.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11928\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Test-Internet-Speed-Locally.jpeg\" alt=\"Test Internet Speed Locally\" width=\"342\" height=\"192\" aria-describedby=\"caption-attachment-11928\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-11928\" class=\"wp-caption-text\">Test Internet Speed Locally<\/p>\n<\/div>\n<p>Now If you want to run the mini server over internet you need to forward your port in the firewall as well as in the router. You may like to refer to the below article to get a brief of how-to on the above topic.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/creating-your-own-webserver-and-hosting-a-website-from-your-linux-box\/\" target=\"_blank\" rel=\"noopener\">Create Your Own Web Server to Host Website<\/a><\/li>\n<\/ol>\n<p>If everything goes fine you can check your bandwidth speed using\u00a0<strong>mini server<\/strong>. But if the mini server and machine to be tested are on the same network you might need a proxy server like (<strong>kproxy.com<\/strong>), to test.<\/p>\n<div id=\"attachment_11929\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Test-Internet-Speed.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11929\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Test-Internet-Speed.jpeg\" alt=\"Test Internet Speed on Same Network\" width=\"342\" height=\"195\" aria-describedby=\"caption-attachment-11929\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-11929\" class=\"wp-caption-text\">Test Internet Speed on Same Network<\/p>\n<\/div>\n<p>Also you can check the speed of Internet connection on headless server or Linux command Line using\u00a0<code>speedtest-cli<\/code>\u00a0tool.<\/p>\n<pre># speedtest_cli.py --mini http:\/\/127.0.0.1\/mini\r\n<\/pre>\n<div id=\"attachment_11930\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Check-Internet-Speed-Using-Speetest-Cli.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-11930\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Check-Internet-Speed-Using-Speetest-Cli-620x185.jpeg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Check-Internet-Speed-Using-Speetest-Cli-620x185.jpeg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/03\/Check-Internet-Speed-Using-Speetest-Cli.jpeg 722w\" alt=\"Check Internet Speed Using Speetest-Cli\" width=\"620\" height=\"185\" aria-describedby=\"caption-attachment-11930\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-11930\" class=\"wp-caption-text\">Check Internet Speed Using Speetest-Cli<\/p>\n<\/div>\n<p><strong>Note<\/strong>: If you are on different network, you are supposed to use public ip address in web browser as well as command-line.<\/p>\n<p>Furthermore,\u00a0<strong>SYSAdmins<\/strong>\u00a0can schedule the speedtest to run periodically in production, after setting up mini server.<\/p>\n<h3>Conclusion<\/h3>\n<p>The setup is too easy and took me less than 10 minutes of time. You may setup your own\u00a0<strong>speedtest server<\/strong>\u00a0to check the connection speed of your own production server, it is fun.<\/p>\n<p>That\u2019s all for Now. I\u2019ll be coming up with another interesting article very soon. Till then stay tuned and connected to Tecmint. Don\u2019t forget to provide us with your valuable feedback in the comments below. Like and share us and help us get spread.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/speedtest-mini-server-to-test-bandwidth-speed\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overwhelmed with the response we got on the previous article on how to test the bandwidth speed using command line tool\u00a0speedtest-cli.py, this tutorial aims at providing you with the knowledge of setting your own\u00a0speedtest mini server\u00a0in 10 minutes. Check Your Internet Speed from Command Line Using \u2018Speedtest-CLI\u2019 Tool Speedtest.net\u00a0mini is a speed testing application which &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/30\/setup-your-own-speedtest-mini-server-to-test-internet-bandwidth-speed\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setup Your Own \u201cSpeedtest Mini Server\u201d to Test Internet Bandwidth Speed&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13018","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13018"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13018\/revisions"}],"predecessor-version":[{"id":13019,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13018\/revisions\/13019"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}