Install the Speedtest HTML5 service on the VPS to test the tape. Parse error: syntax error, unexpected solution

888u

Last update at :2024-02-12,Edit by888u

Every old friend in the blog has a lot of VPS, and this blog has also published a lot of VPS evaluation data. In fact, for foreign VPS, speed is actually the most critical. As for the IO of the hard disk As long as the data is above 50M, it can fully meet your file reading conditions, so the speed from VPS to the computer is the most important, even if your VPS configuration is very good, the CPU performance is very high, the memory is very large, and the hard disk IO Very high. If the line is very poor, there is no use in buying it. Many merchants have some looking glass test sites on their official websites. In fact, after we buy a VPS, we can also set up such a site for testing. The test source code has already been written by a big guy. We only need to download it and use it directly. Okay, here is the test site that the blogger set up on the VPS of hostmybytes (please don’t buy it, it’s a scam), one of the four major websites. You can try it.

Script address

https://github.com/adolfintel/speedtest

Installation method

The blogger uses the Pagoda panel. You can also use other panels, such as Junge’s LNMP. The advantage of Pagoda is that it can be downloaded to the specified directory remotely. I set this site as the default site, just enter The IP can be accessed directly, as shown below: If you have a basic panel, you can wget directly. The download address is as follows:

https://github.com/adolfintel/speedtest/archive/master.zip

After downloading, you need to change the default homepage, change example-pretty.html to index.html, or add example-pretty.html to the default document so that you can access it directly. If you are using Junge's LNMP panel, it should be uploaded to the default folder. Access will display the following page:

Error reporting

If it prompts "IP Address: Parse error: syntax error, unexpected '[', expecting ')' in ...../speedtest/getIP.php on line 24, then it must be due to your PHP version. You just need to upgrade PHP to 7.0.

Recommended site search: local IP query address, proxy IP, US vps host, server hosting, virtual space purchase, US virtual host, all-purpose space trial, free host, independent IP virtual host, Korean cn2 server,

Install the Speedtest HTML5 service on the VPS to test the tape. Parse error: syntax error, unexpected solution

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码