WinXP how to install Apache+MySQL+PHP environment

  

Some users engaged in program management development need to install Apache+MySQL+PHP environment in their WinXP computer, so how to operate? Today Xiaobian will share with you the specific installation steps.

Recommended: WinXP Professional installed version downloading

installation steps:

Throughout wamp environmental structures, the nature of work is as follows:

1 The configuration system can call the dll file in php by default.

Under windos, the dll file system is called by default. There are two ways to use it.

The first one is to copy the dll file to C:windows system32 (or C:WINNT system32 if it is Windows 2000).

The second is: append the address of the folder where the .dll suffix file is located to the path variable of the system. In this case, when the system is started, the dll file will be automatically loaded into the memory by default. in.

The third is: put php.ini; extension_dir = “. /” Modified to extension_dir = “D:/php5/ext”

Note that restarting the Apacche server will not take effect.

2, apache configuration, the essence is to let apache server software, able to parse .php files.

Configured in httpd.conf and php.ini respectively.

Modify in httpd.conf:

2-1, configure the root directory

The code is as follows:

DocumentRoot D:/wwwroot----- This is the first place, the red text part, modify the cost of the apache website code main folder, that is, the main folder of the project code.

"Directory “D:/wwwroot""------- This is the second place, ibid.

2-2, Configuring Directory Indexes

The code is as follows:

DirectoryIndex index.html index.html.var index.php index.html

2 -3, combination php and Apache2

The code is as follows:

LoadModule php5_module D:/php5/php5apache2.dll----------Load php in module mode

PHPIniDir “D:/php”-------------------- Specify php configuration file php.ini location

AddType application/x -httpd-php .php

AddType application/x-httpd-php .html--------------Add file types that can execute php

DirectoryIndex Index.php index.html index.html.var-----Configure the index directory default file

php.ini modify:

1, set the way PHP passes parameters

The code is as follows:

register_globals=Off/On

Set to Off, you can only use $_post[‘variable name’], $_GET[‘variable name’ ] to pass the parameter

set to On, you can directly use the $ variable name to get the passed Numerical

2, is provided to load dll module, the following must be configured.

The code is as follows:

;extension=php_gd2.dll---------GD library extension file, the user processes the image, such as generating a picture, the picture is cropped and compressed, and the picture is played Watermark and other operations

;extension=php_mbstring.dll--------large character set, support conversion between multiple character sets

;extension=php_mcrypt.dll

;extension= php_mysql.dll

;extension=php_mysqli.dll

Remove the semicolon and set the dll module to be loaded. The above are basically to be removed.

The difference between wamp and lamp environment is that the system loads dll files in php differently,

and the combination of apahce and php, under window and linux/unix Basically the same, both modify httpd.conf and php.ini to achieve.

Therefore, in the actual work process, the fastest way to manually configure the server is:

1, manually install the apache server, manually install and configure php.

2, in the previous configuration of the php.ini and httpd.conf file based on the two files directly copied to the relevant directory.

For httpd.conf, you need to modify the key directories, mainly:

Configuring the root directory

The code is as follows:

DocumentRoot D:/wwwroot ----- This is the first place, the red part, modify the cost of the apache website code main folder, that is, the main folder of the project code.

"Directory “D:/wwwroot""------- This is the second place, ibid.

Basically fix these two changes.

The above is the way to install the Apache+MySQL+PHP environment in WinXP system. I don't know how to install the user. Come and take a look at these steps.

Copyright © Windows knowledge All Rights Reserved