Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get IP address and download test seems slow #147

Closed
davboroyal opened this issue Aug 8, 2018 · 23 comments
Closed

Unable to get IP address and download test seems slow #147

davboroyal opened this issue Aug 8, 2018 · 23 comments

Comments

@davboroyal
Copy link

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 ..
image

@adolfintel
Copy link
Member

It looks like you have some config issue with PHP. If you give me the URL of your server I can take a look.

@davboroyal
Copy link
Author

Sadly it's an internal server. Can't get access to you ...

@adolfintel
Copy link
Member

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?

@davboroyal
Copy link
Author

It downloaded a 1K file

@davboroyal
Copy link
Author

random.dat

@adolfintel
Copy link
Member

Open it in notepad, there's probably a server error inside

@davboroyal
Copy link
Author


Fatal error: Call to undefined function openssl_random_pseudo_bytes() in E:\web\htdocs\supportweb\speedtest-master\garbage.php on line 18

@adolfintel
Copy link
Member

Looks like the OpenSSL module isn't configured correctly in PHP

@davboroyal
Copy link
Author

Ughh ... seems to be, but not sure what to check ... it's in the php.ini and enabled.

@adolfintel
Copy link
Member

Try reinstalling the module, maybe it will fix it

@davboroyal
Copy link
Author

Would this affect the GETIP.php as well ?

@adolfintel
Copy link
Member

getIP doesn't use OpenSSL, there must be another problem with that. Line 22 doesn't contain any syntax error, unless you modified it.

@davboroyal
Copy link
Author

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 ?

@adolfintel
Copy link
Member

adolfintel commented Aug 8, 2018 via email

@davboroyal
Copy link
Author

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 ?

@adolfintel
Copy link
Member

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

@davboroyal
Copy link
Author

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.

@adolfintel
Copy link
Member

adolfintel commented Aug 8, 2018 via email

@adolfintel
Copy link
Member

adolfintel commented Aug 8, 2018

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.

@davboroyal
Copy link
Author

davboroyal commented Aug 8, 2018 via email

@dtech4you
Copy link

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

https://vgy.me/RFjRlk.png

any help in getting this working would more than likely result in donations down the road.

@adolfintel
Copy link
Member

adolfintel commented Sep 5, 2018

@dtech4you It looks like a problem with the web server configuration. I'm not quite sure what exactly because I never used nginx

@dtech4you
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants