Details on how to download and setup the tool here
I managed to setup the tool successfully but i however ran into a small problem.
The download calculation was working fine, but the upload calculation that uses a script called "upload.php" was failing.
The tool would only stop at calculating the download speed, the upload icon would highlight but the calculation simply wouldn't happen.
Problem:
For my particular case, the problem was that my Apache2 configuration was never set to recognize php scripts and that's why when ever i would run that file in a browser e.g "http://x.x.x.x/mini/speedtest/upload.php" instead of the script returning the value "size=500", it would return the source code, just like a text file.
And whenever i would run the script directly on the server, it would execute successfully.
Solved:
Edit the Apache configuration file (i.e. "httpd.conf ") to be able to parse PHP files. Add the lines below:
AddType application/x-httpd-php .php AddType application/x-httpd-phps .phps AddType application/x-httpd-php3 .php3 .phtml AddType application/x-httpd-php .html |
Restart Apache
e.g. ./httpd -k restart
I tested again by calling the script in the browser and it executed successfully and returned the value "size=500"
I tested my mini speed test server and it was working OK:
OOKLA MINI SPEEDTEST |
No comments:
Post a Comment