A detailed tutorial on building a station with Wampserver

Source: Internet
Author: User
Tags configuration php php server php website

Reprint Annotated Source: http://www.360doc.com/content/16/1204/21/38773335_611894980.shtml

Reprint Annotated Source: Wampserver configuration Tutorial in Windows environment-Super detailed

2012-04-04 19:44:56|  Category: Default Categories | Tags: computer learning | font Size Subscription

Native PHP Environment Build Tutorial: Wampserver configuration Tutorial in Windows environment-Super detailed
2012-01-25 14:28

For the first to make a PHP website for friends, it is certainly hoped that in their own computer is to build PHP environment, save space and upload trouble! But building

Environment is not an easy thing, especially for novice students! So I am here to introduce to you as a novice in the use of the convenient

PHP Server Erection Software, that is wampserver, this software in the process of installation has been Apache, MySQL, PHP inherited good

, but also the corresponding configuration, in addition to the Sqlitemanager and phpMyAdmin, save a lot of complex configuration

Process, so that we can put more time on the development of the program. It is even more gratifying to note that the software is also completely free. Important NOTE: basically every

After the operation of the configuration file has been restarted, it will not take effect until the corresponding service is rebooted, i.e. if the modification is

You must restart the corresponding service after the modification has been saved!
First, the installation of Wampserver installation Wampserver process is very simple, as long as you can click on the next to complete the installation: Click on the diagram

1

7, in order to select the Default browsing tool: The installation process will be prompted to select the default Browsing tool, as shown, but note that the Browse tool

Refers to the browser Oh, it refers to the Windows browser, that is, Explorer.exe, the default is this, directly click on the "open"

You can do it.

8, as shown, will be prompted to enter the administrator mailbox and Mailbox SMTP Server window, this if you are willing to fill in, you can fill in,

However, under normal circumstances, click Next directly, will not affect the installation.


OK, the installation is finished successfully! It's simple!
10, after installation, the bottom right corner of the screen will come out a marker, you right-click, and then select Language-chinese,

Look again


11, left click, and then click "www directory" will open the installation wampserver default home Page folder, but many times, we store the page

folder is not in that directory, how to get rid of this directory? Of course there is a way to open the Wampserver installation directory, which opens inside the

"Script" folder, use Notepad to open the config.inc.php inside, find "$wwwDir = $c _installdir." /www '; ' and change to the directory you want

OK, such as change to D:\website, the corresponding code is $wwwdir = ' d:/website '; (note that the "\" under windows that represents the path must be

Change to "/"). Then turn the wampserver off and then on, and the WWW directory becomes the D:\website we set. (Note: This modification is only

It's a link on the wampserver. < if not special needs, do not recommend that you change; the real Apache directory is not here, the way to change

Please don't worry, keep looking down. )
Ii. configuration of MySQL and phpMyAdmin
A single installation of MySQL friends will definitely find a problem, the previous installation of MySQL is required to configure a root password, but the installation

Wampserver, there is no password to configure the steps, it is not MySQL blank password? The answer is yes, it is indeed a blank password.

Wouldn't it be very unsafe? Very right, so we have to change the password ah, hehe
1, left-click, select "PhpMyAdmin", will open the PhpMyAdmin Management page, click on the upper right of the "permissions", generally will

The table that appears, all we have to do is click on the right side of the user name as root on each line.


2, click, find two to change the password area, fill in the password you want to change, and then click on the bottom right of the execution, a moment later will appear

Modify the prompt for success, each root user needs to do this, if 1:30 will not think of a good password, you can also use "Generate password"

function to generate a random password, but this password must be remembered, forget the trouble can be big.

Note: After changing the password, you can see that the corresponding account password bar is changed from "No" to "yes", such as the Green circle part. Then add

New users (described in detail next), delete the user, such as the Red Mark section to complete the operation!
3, after the above operation to restart the MySQL service, and then refresh the page, we will find that there is an error, which is why?


Because we have just modified the MySQL password, but did not modify the phpMyAdmin and MySQL communication password, how to change it? Open Wampserver

Install the directory, then open \wamp\apps\phpmyadmin3.3.9 in turn, and use Notepad or the DW software to open the config.inc.php inside to find "

$cfg [' Servers '] [$i] [' password '] = '; ', enter the password that you just modified in the last two single quotes, then save, after the operation is complete

Re-refresh the phpMyAdmin page, is it back to normal?




4, finished the above configuration, we need to create a MySQL database user and user corresponding database, again, click on the top right

Permissions button to find a "Add new user" link below the middle offset, create a user and the corresponding database as shown, and give

Single database management permissions, the following resource constraints are based on the actual situation to fill out, the general use of the case that the area can be retained

The default, and then click the "Execute" button in the bottom right corner, the corresponding user and the database is created.

III. Configuration of Apache
Although Wampserver has helped us integrate Apache, but some of the details of things still need our own to improve, let us

To a pair of wampserver brought the Apache to perfect.
1, just loaded after wampserver, there is no temper more anxious friends may try to access our configured Wampserver server through the extranet,

But you will find that access via the extranet will prompt you for insufficient permissions. is because Wampserver is only allowed 127.0.0.1 access by default, and

is to allow only native access, how to modify it? Click-apache-httpd.conf, and find the place, probably in the No. 234

OK, delete "Deny from all" and then change "Allow from 127.0.0.1" to "let from all".

2, continue to search, found two places (respectively, in the line of about 190th and No. 225), respectively, "allowoverride None" changed to

"AllowOverride All" (This step is for the use of URL rewriting features of friends, if not used this step is not recommended to make changes, because

After this change, Apache's security will be slightly reduced. )


3, turn on the URL rewrite function, of course, if you feel that URL rewriting function is not necessary, this can be ignored, but if you open the

, the second above must be done, otherwise it is easy to cause errors. Open the httpd.conf file by using the method above to locate

#LoadModule Rewrite_module modules/mod_rewrite.so, and then the front "#" to delete, it is OK, of course, if you want this

Changes to take effect, you will need to restart the Apache service immediately.

4, I believe you remember the above change wampserver "www directory" point to the path of the way it? I used to say that this method just changed.

Wamp in the "www directory" this link, then if you want to really change, how should we change it? Very simple, open httpd.conf, look for

"DocumentRoot" is probably in line 178th, change the value of the back to the path we need for the actual site, and then look for

"<directory" c:/wamp/www/">", also change the value of the back to our site to store the actual address, OK.


Iv. Configuration php--Important

PHP configuration is relatively simple, only need to make some basic settings to modify, click-php-php.ini,

Find these three places: Short_open_tag = OFF (Is it allowed to use the abbreviated form of the PHP Code start flag (<??>). );

Memory_limit = 128M (maximum size of memory used);

Upload_max_filesize = 2M (maximum number of uploaded attachments),

The first need to change to on, otherwise a lot of PHP programs will not work, the latter two will be in accordance with the actual needs of everyone to change the line.


V. Conclusion

So far, our wampserver configuration can be suspended, now you can upload a set of PHP program run,

Experience the joy of success, of course, the functional operation of Wampserver and its add-ons is much more than simple, the purpose of this article is only

is to allow everyone to successfully use the Wampserver to build a PHP server environment, then you need to slowly ponder O (∩_∩) o~

Wampserver Configuration Tutorial in Windows environment--Super detailed

2012-04-04 19:44:56|  Category: Default Categories | Tags: computer learning | font Size Subscription

Native PHP Environment Build Tutorial: Wampserver configuration Tutorial in Windows environment-Super detailed
2012-01-25 14:28

For the first to make a PHP website for friends, it is certainly hoped that in their own computer is to build PHP environment, save space and upload trouble! But building

Environment is not an easy thing, especially for novice students! So I am here to introduce to you as a novice in the use of the convenient

PHP Server Erection Software, that is wampserver, this software in the process of installation has been Apache, MySQL, PHP inherited good

, but also the corresponding configuration, in addition to the Sqlitemanager and phpMyAdmin, save a lot of complex configuration

Process, so that we can put more time on the development of the program. It is even more gratifying to note that the software is also completely free. Important NOTE: basically every

After the operation of the configuration file has been restarted, it will not take effect until the corresponding service is rebooted, i.e. if the modification is

You must restart the corresponding service after the modification has been saved!
First, the installation of Wampserver installation Wampserver process is very simple, as long as you can click on the next to complete the installation: Click on the diagram

1

7, in order to select the Default browsing tool: The installation process will be prompted to select the default Browsing tool, as shown, but note that the Browse tool

Refers to the browser Oh, it refers to the Windows browser, that is, Explorer.exe, the default is this, directly click on the "open"

You can do it.

8, as shown, will be prompted to enter the administrator mailbox and Mailbox SMTP Server window, this if you are willing to fill in, you can fill in,

However, under normal circumstances, click Next directly, will not affect the installation.


OK, the installation is finished successfully! It's simple!
10, after installation, the bottom right corner of the screen will come out a marker, you right-click, and then select Language-chinese,

Look again


11, left click, and then click "www directory" will open the installation wampserver default home Page folder, but many times, we store the page

folder is not in that directory, how to get rid of this directory? Of course there is a way to open the Wampserver installation directory, which opens inside the

"Script" folder, use Notepad to open the config.inc.php inside, find "$wwwDir = $c _installdir." /www '; ' and change to the directory you want

OK, such as change to D:\website, the corresponding code is $wwwdir = ' d:/website '; (note that the "\" under windows that represents the path must be

Change to "/"). Then turn the wampserver off and then on, and the WWW directory becomes the D:\website we set. (Note: This modification is only

It's a link on the wampserver. < if not special needs, do not recommend that you change; the real Apache directory is not here, the way to change

Please don't worry, keep looking down. )
Ii. configuration of MySQL and phpMyAdmin
A single installation of MySQL friends will definitely find a problem, the previous installation of MySQL is required to configure a root password, but the installation

Wampserver, there is no password to configure the steps, it is not MySQL blank password? The answer is yes, it is indeed a blank password.

Wouldn't it be very unsafe? Very right, so we have to change the password ah, hehe
1, left-click, select "PhpMyAdmin", will open the PhpMyAdmin Management page, click on the upper right of the "permissions", generally will

The table that appears, all we have to do is click on the right side of the user name as root on each line.


2, click, find two to change the password area, fill in the password you want to change, and then click on the bottom right of the execution, a moment later will appear

Modify the prompt for success, each root user needs to do this, if 1:30 will not think of a good password, you can also use "Generate password"

function to generate a random password, but this password must be remembered, forget the trouble can be big.

Note: After changing the password, you can see that the corresponding account password bar is changed from "No" to "yes", such as the Green circle part. Then add

New users (described in detail next), delete the user, such as the Red Mark section to complete the operation!
3, after the above operation to restart the MySQL service, and then refresh the page, we will find that there is an error, which is why?


Because we have just modified the MySQL password, but did not modify the phpMyAdmin and MySQL communication password, how to change it? Open Wampserver

Install the directory, then open \wamp\apps\phpmyadmin3.3.9 in turn, and use Notepad or the DW software to open the config.inc.php inside to find "

$cfg [' Servers '] [$i] [' password '] = '; ', enter the password that you just modified in the last two single quotes, then save, after the operation is complete

Re-refresh the phpMyAdmin page, is it back to normal?




4, finished the above configuration, we need to create a MySQL database user and user corresponding database, again, click on the top right

Permissions button to find a "Add new user" link below the middle offset, create a user and the corresponding database as shown, and give

Single database management permissions, the following resource constraints are based on the actual situation to fill out, the general use of the case that the area can be retained

The default, and then click the "Execute" button in the bottom right corner, the corresponding user and the database is created.

III. Configuration of Apache
Although Wampserver has helped us integrate Apache, but some of the details of things still need our own to improve, let us

To a pair of wampserver brought the Apache to perfect.
1, just loaded after wampserver, there is no temper more anxious friends may try to access our configured Wampserver server through the extranet,

But you will find that access via the extranet will prompt you for insufficient permissions. is because Wampserver is only allowed 127.0.0.1 access by default, and

is to allow only native access, how to modify it? Click-apache-httpd.conf, and find the place, probably in the No. 234

OK, delete "Deny from all" and then change "Allow from 127.0.0.1" to "let from all".

2, continue to search, found two places (respectively, in the line of about 190th and No. 225), respectively, "allowoverride None" changed to

"AllowOverride All" (This step is for the use of URL rewriting features of friends, if not used this step is not recommended to make changes, because

After this change, Apache's security will be slightly reduced. )


3, turn on the URL rewrite function, of course, if you feel that URL rewriting function is not necessary, this can be ignored, but if you open the

, the second above must be done, otherwise it is easy to cause errors. Open the httpd.conf file by using the method above to locate

#LoadModule Rewrite_module modules/mod_rewrite.so, and then the front "#" to delete, it is OK, of course, if you want this

Changes to take effect, you will need to restart the Apache service immediately.

4, I believe you remember the above change wampserver "www directory" point to the path of the way it? I used to say that this method just changed.

Wamp in the "www directory" this link, then if you want to really change, how should we change it? Very simple, open httpd.conf, look for

"DocumentRoot" is probably in line 178th, change the value of the back to the path we need for the actual site, and then look for

"<directory" c:/wamp/www/">", also change the value of the back to our site to store the actual address, OK.


Iv. Configuration php--Important

PHP configuration is relatively simple, only need to make some basic settings to modify, click-php-php.ini,

Find these three places: Short_open_tag = OFF (Is it allowed to use the abbreviated form of the PHP Code start flag (<??>). );

Memory_limit = 128M (maximum size of memory used);

Upload_max_filesize = 2M (maximum number of uploaded attachments),

The first need to change to on, otherwise a lot of PHP programs will not work, the latter two will be in accordance with the actual needs of everyone to change the line.


V. Conclusion

So far, our wampserver configuration can be suspended, now you can upload a set of PHP program run,

Experience the joy of success, of course, the functional operation of Wampserver and its add-ons is much more than simple, the purpose of this article is only

is to allow everyone to successfully use the Wampserver to build a PHP server environment, then you need to slowly ponder O (∩_∩) o~

A detailed tutorial on building a station with Wampserver

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.