Turn Showslow+yslow page front end performance test environment setup

Source: Internet
Author: User
Tags mysql command line

----//Tools Introduction

Yslow:Yslow is a Firefox-based plugin released by Yahoo .

YSlow can analyze the page of the website and tell you how to optimize it based on some rules to improve the performance of the website.

Showslow: Showslow platform is used to collect the test results of the page Performance test tool YSlow, and to analyze and display the test results. There is an online showslow platform on the Internet that provides free YSlow test Results Collection and presentation. We build our own environment, considering that some of our systems can have trade secrets.

Online showslow platform:http://www.showslow.com

----//Environment Introduction

Because I am in the process of building the card in the version, so in order to make your mistakes in the construction process, I am here to list the environment I build.

System:Windows XP SP3

Browser:FireFox 6.0.2

Yslow version:Yslow 3.0.4

Showslow version : http://download.csdn.net/detail/fnngj/3629866

For Showslow, please follow the link I provided to download, although he is older, but it is available.

The latest version is available on Hubgit, the latest version is:showslow_1.1.3 but tried n times (n greater than 10), there has been an error. Please despise me. I have tried to roam the internet for several days without finding a solution. If you succeed, please write to share with you, thank you.

Appserv version : http://www.appservnetwork.com/

After entering the download page, please download the appserv-win32-2.5.10 version, although it is not up-to-date, but it is available. Please do not download on other websites, because I cannot guarantee that it is available. Brother and sister did not scare you oh. Because I downloaded on other websites have been error, found no solution, this is also a second reason to roam for many days. Please despise me again.

Of course, you can do it without appserv. You can install PHP,MySQL,Apache, and the default modules separately. If you've configured it, feel so ease, and you can share it. Please write the details, because the novice like me will not understand.

----//one-up configuration

Install the downloaded appserv-win32-2.5.10.exe file, all the way to fill out the line, pay attention to the database password you fill in.

After the installation is complete, hit your MySQL database (Start -Program --sppserv-mysql Command line Client)

Enter the password that you filled in when you installed it.

mysql>create database showslow; //Create a database

Mysql>use Showslow; //Switch to a new database

In the Showslow folder you downloaded to find a file called:tables.sql, and then copied to a simple path below, I directly put the C-packing directory, execute the following command.

Mysql>source C:/tables.sql; //Import all the tables into the newly created database

mysql>show tables; //Confirm whether the import was successful

Open the Showslow folder and locate config.sample.php rename config.php

If you download the link I provided, there is a config.php, no need to rename it.

Modify The parameters inside the config.php

$db = ' Showslow ';

$user = ' root ';

$pass = ' 123456′; The password is modified according to your situation.

Finally, put your modified Showslow folder under the. \appserv\www\ folder.

Open your Firefox browser,

Menu bar: Tools-add-ons-search: Firebug and YSlow two components download and restart after installation.

In the Firefox address column input:about:config-– I promise I'll be careful.

Filter:YSlow

Modify the following three things:

    • EXTENSIONS.YSLOW.BEACONURL = http://www.example.com/showslow/beacon/yslow/
    • Extensions.yslow.beaconInfo = Grade
    • Extensions.yslow.optinBeacon = true

Restart Browser: Enter http://localhost/showslow/ in the browser

If there are no errors on the page, congratulations, you're lucky.

=================================== problems that may arise ===========================================

Error message:

Fatal Error : Call to undefined function mcrypt_get_iv_size ()

In C:\AppServ\www\showslow\users\CookieStorage.php on line

Workaround:

Search for libmcrypt.dll and libmhash.dll files under the \appserv\ folder

Copy these two files to the windows\system32\ folder under the system disk (for example, C drive) .

Locate and open the system disk \winows\php.ini (note the extension is not wrong )

It's about 593 lines.

Extension=php_mcrypt.dll

Extension=php_mhash.dll

Remove and save the semicolon (;) in front of the above two sentences.

—————————————————————-

Error message:

Warning : Mysql_fetch_assoc (): supplied argument is not a valid MySQL result resource in C:\AppServ\www\showslow\index.php on line

No data is gathered yet

Workaround:

Sorry, I have not solved this problem, if you download is I provide showslow should not appear this error. If not, it is possible to report such a mistake. And I marked the red part will appear in many places, please expert answer .....

==========================================================================================

----//How to use

If you have a good installation, take a look at how to use it.

Open the Firefox browser and enter the URL you want to test:http://fnng.cnblogs.com Open the yslow plugin test.

Then switch to http://localhost/showslwo/

Turn Showslow+yslow page front end performance test environment setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.