Using the latest version of Wampserver to build a WAMP platform Super simple Practical tutorial

Source: Internet
Author: User

First of all, I would like to say that when the Wamp platform is usually built, it is mainly divided into bulk package construction and integrated package construction process.

Bulk package construction is to download the Php,apache,mysql, a one installation, the process of gray often complex, and need to configure the system variables and modify the file too much, not suitable for beginners and the system customization requirements are not high use.

Integrated package is mainly used to install Wampserver, the package is good, automatic integration of the above procedures, simplifying the operation process, the use of ash is often convenient, the official download address:

http://www.wampserver.com/en/download.php

To provide the latest version of the download, generally more advanced than the version on the Chinese site. The following is a demonstration of the latest version of the installation process as of the author's date of writing:

1, to download the latest version of the above website, this article downloads to the latest version is: Wampserver2.1e-x32.exe

You can see information about the components contained within the Wampserver in the red box above

2, after downloading, run the installation program. The process of installation is basically the same as the process of installing common software, where the default value can be chosen.

3, after the installation will be prompted whether to run the option now, choose to run immediately, the default is offline-that is, other hosts can not access your set up the server, but this machine can be accessed. By the way, for security reasons, if it's just personal development, it's best not to let the server online because of a lot of security issues.

4, open the browser, input: http://localhost/then you can see the following page describes the initial success of the installation.

5. Click on the "Phpinfo ()" In the Tools section above to view the detailed configuration information of PHP, and click "phpMyAdmin" to manage the database with its management. The following your aliases three are the Wamp Management Analysis Control Interface, the first two are to explain the database, the last one is used to analyze the PHP program.

6, complete the above interface is basically set up a platform, you can use the relevant options to view, the following figure:

7, the future of your own PHP files will be placed under the WWW directory. For example: Click on the "www directory" in the image above, open the directory: Delete the original index.php, and then in the inside with Notepad to create a new file, in which to enter:

<?php
echo "This is a home page file. ";
?>

Choose Save As, change the name of the file to index.php, and choose the saved default format to be UTF-8 format, the default is the ANSI encoding format-use this format will appear garbled, because Wampserver is using the UTF-8 encoding method.

8, restart the Wampserver, and then visit the http://localhost/, the Discovery page displays the text as follows:

This is a home page file.

Since then, the Wamp platform is basically built successfully. Here are some of the more advanced configuration actions.

  

Modified as shown in the above, the httpd.conf file, the servername localhost:80, you can modify the access to the port, modify the other people to visit your server when you need to specifically specify the port number.

Modify DocumentRoot "... /wamp/www/"and <directory" ... wamp/www/"> This column, you can modify the relevant path for you want, and then your PHP file will be placed in the path you set it.

More comprehensive changes to the relevant path of this method see (but as a development to this step has been basically satisfied with the requirements):

Http://hi.baidu.com/vfoxer/blog/item/ce5c81d48a2b7e12a18bb71f.html

From this, this article constructs the Wamp platform the basic configuration to end, hoped has the help to you.

This article I personally test through, but a friend reflects a problem, he resolved the statement is:

1, clear cache (ie's. Seems to have nothing to do with me, I used to develop when the IE cache disabled, this ... )

2, into the php.ini modify password and MySQL, the same as the database connection password,

The default user for Ps:mysql is root and the password is blank.

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.