Closed davboroyal closed 6 years ago
It looks like you have some config issue with PHP. If you give me the URL of your server I can take a look.
Sadly it's an internal server. Can't get access to you ...
Ok, I'll try to help you anyway. Try to connect to http://yourserver/garbage.php, does it start a download? If it does, is it a large file or just a few bytes?
It downloaded a 1K file
random.dat
Open it in notepad, there's probably a server error inside
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in E:\web\htdocs\supportweb\speedtest-master\garbage.php on line 18
Looks like the OpenSSL module isn't configured correctly in PHP
Ughh ... seems to be, but not sure what to check ... it's in the php.ini and enabled.
Try reinstalling the module, maybe it will fix it
Would this affect the GETIP.php as well ?
getIP doesn't use OpenSSL, there must be another problem with that. Line 22 doesn't contain any syntax error, unless you modified it.
Well it's there and working, perhaps an older version .. is there a way to not use the openssl ... and just use the file download for speedtest ?
Yes, you can use a large file instead of garbage.php, it's explained in the documentation. See the url_dl parameter
On August 8, 2018 7:10:12 PM GMT+02:00, davboroyal notifications@github.com wrote:
Well it's there and working, perhaps an older version .. is there a way to not use the openssl ... and just use the file download for speedtest ?
-- You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub: https://github.com/adolfintel/speedtest/issues/147#issuecomment-411481515
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Nope, didn't modify the line ... I was also looking at the url_dl parameter and where do I edit to put the location of the file as opposed to the garbage.php ?
In your HTML file look for the line that says w.postMessage('start') and replace 'start' with 'start {"url_dl":"garbage.dat"}'. More about this here: https://github.com/adolfintel/speedtest/wiki/Changing-the-test-settings
Found it just before you posted .. edited and it worked.. thanks .. Now just need to get the getip.php working .. not sure why .. looks fine where it's complaining.
Maybe the PHP version is too old? The oldest one I tried was 5.3
On August 8, 2018 7:31:44 PM GMT+02:00, davboroyal notifications@github.com wrote:
Found it just before you posted .. edited and it worked.. thanks .. Now just need to get the getip.php working .. not sure why .. looks fine where it's complaining.
-- You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub: https://github.com/adolfintel/speedtest/issues/147#issuecomment-411488329
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Yes, I just checked again and 5.4 seems to be the oldest version that can run getIP. 5.3 and older give your same syntax error because that syntax for arrays was added in 5.4 (http://php.net/manual/en/migration54.new-features.php) I'll update the documentation.
Ok, I’ll find another option for that ... Thanks for your help.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Federico Dossena notifications@github.com Sent: Wednesday, August 8, 2018 3:04:12 PM To: adolfintel/speedtest Cc: davboroyal; Author Subject: Re: [adolfintel/speedtest] Unable to get IP address and download test seems slow (#147)
Yes, I just checked again and 5.4 seems to be the oldest version that can run getIP. 5.3 gives me a syntax error.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/adolfintel/speedtest/issues/147#issuecomment-411498522, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AoQaxtNoVi9jnJkM6dVXUqRqEzMjxZfgks5uOygcgaJpZM4V0CDI.
so i am having somewhat same problem but not sure why. so i have 2 servers i am testing on both linux both running same setups the only diffrence being that one is local without a domain and the other is external with a domain. the web-server running it is ngnix not apache2. so the problem is the local server works like one would hope, but the external server is having problems talking to the php files which i am not sure why and or how my only guess is has something to do with the letsecrypt domain name sky.quickbox.io/speedtest
any help in getting this working would more than likely result in donations down the road.
@dtech4you It looks like a problem with the web server configuration. I'm not quite sure what exactly because I never used nginx
figured out the problem but not the solution and not sure if it has to do with how nginx is but it is broke due to the domain name not sure if its not understanding the uri or what wondering how might go about this as tried with same setup on a external server without letsencrypt and works just fine
I get this from the getip.php page: Parse error: parse error, expecting `')'' in E:\web\htdocs\supportweb\speedtest-master\getIP.php on line 22
And download seems really slow ... less than a Meg versus 93 Meg Upload from my testing which I would expect ...
I'm running the code on an older windows 2008 box with Apache/PHP Apache/2.2.11 (Win32) mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9-1
Any places to start .. you mentioned a garbage.dat file, I downloaded, but not quite sure how to reference, etc ..