Home  >  Article  >  Backend Development  >  php---Local development and testing environment setup (Wamp)

php---Local development and testing environment setup (Wamp)

WBOY
WBOYOriginal
2016-08-08 09:22:331254browse
1 Introduction Adopt the simplest web development environment---WAMP integrated installation environment, that is, Windows+Apache+Mysql+PHP four software integration. This saves us the work of installing software one by one and configuring it, which is a good choice for novices. For php text editing, you can use Notepad or an advanced text editor, such as EditPlus, etc. Of course, you can also use powerful integrated development tools such as Eclipse. 2 The website uses: Wampserver Version 2.4 64-bit There are many online searches for installation tutorials. Reference tutorial: http://jingyan.baidu.com/article/c45ad29cd4b357051753e2a0.html3 WAMP basic configuration 【Language configuration】 right click --->Language ---> ;chinese 【Apache is configured to allow external network access】 Left-click--->Apache--->httpd.conf Modification content is as follows: Order Deny,Allow Allow from all

#Allow from 127.0.0.1

Allow from ::1

Allow from localhost

【Allow php code to start Make a short label] 键 Left button --- & gt; php --- & gt; php settings --- & gt; short open tag tick

[database password modification]

mysql default password. ①Open WAMP's Mysql console, prompt to enter the password, start the password is empty, just press Enter: Left click --->MySQL--->MySQL console②Enter [use mysql], the console prompts [Database changed]

③Enter [update user set password=PASSWORD('password to be modified') where user='root';], the console prompts [ Query OK,XXXXXXXXX]

④Finally enter [flush privileges;], submit

⑤Enter [quit], and exit.

⑥ Find the [config.inc.php] file in the phpmyadmin folder under the directory wampapps, and modify [$cfg['Servers'][$i]['password'] = '']; to 【$cfg['Servers'][$i]['password'] = 'Password to be modified

';

].

⑦ Just restart the service. The username is root

, and the password is the changed password. 【Apache changes port to 80】 Left click--->Apache--->httpd.conf

The modification content is as follows: Listen 80 Then restart the server. 【Current website root directory configuration】 Left-click--->Apache--->httpd.conf The modification content is as follows:

DocumentRoot "d:/wamp/www/bbs"

Change the root directory to bbs, the default is the www directory , restarting the server is effective. 4 Test configuration After changing the port to 80, open the browser and enter http://localhost/ Test whether the database can be logged in: http:// localhost/phpmyadmin/

The above introduces php---local development and test environment construction (Wamp), including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn