Manual installation of apache+mysql+php Environment Essentials under Windows XP

Source: Internet
Author: User
Tags configuration php

In the construction of the whole WAMP environment, the essential work is as follows:

1, the configuration system to PHP DLL files can be called by default.
Under WinDOS, there are two ways to use the DLL file system by default in the calling state.
The first is to copy the DLL file that needs to be called to C:\windows\ system32\ (C:\WINNT\ system32\) directory If it is a Windows 2000 operating system.
The second is to append the address of the folder where the. dll suffix file resides to the path variable in the system, so that the DLL file is automatically loaded into memory by default when the system starts.
The Third Kind is: the php.ini; Extension_dir = "./" modified to Extension_dir = "D:/php5/ext"

Note that the Apacche server must be restarted to take effect.

2,apache configuration, the essence is to let Apache server software, be able to parse. php files.
Configured in httpd.conf and PHP.ini, respectively.

Modified in httpd.conf:
2-1, configuring the root directory
DocumentRoot D:/wwwroot-----This is the first place to put the Scarlet Letter section, which modifies the cost of Apache's website Code home folder, that is, the home folder that holds the project code.
<directory "D:/wwwroot" >-------This is the second place, ibid.

2-2, configuring the directory Index
DirectoryIndex index.html Index.html.var index.php index.html


2-3, combining PHP with Apache2
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-----Configuring the Index directory default file


PHP.ini Modification:
1. How to set PHP pass parameters
Register_globals=off/on

Set to off to pass parameters only with $_post[' variable name ', ' $_get[' variable name ']
Set to ON, you can use the $ variable name directly to get the passed parameter value

2, set the DLL module that needs to be loaded, the following must be configured.
; extension=php_gd2.dll---------GD library extension files, user processing pictures, such as generating pictures, picture clipping compression, to the picture water printing and so on operation
; Extension=php_mbstring.dll--------Large character set, supports conversion between multiple character sets
; Extension=php_mcrypt.dll
; extension= Php_mysql.dll
; Extension=php_mysqli.dll
Remove the semicolon and set up the DLL module that needs to be loaded. The above are basically to be removed.

The difference between the wamp and the lamp environment is that the system loads the DLL files in PHP in different ways,
And the combination of Apahce and PHP, window under and Linux/unix, basically the same, are modified httpd.conf and php.ini to achieve.

Therefore, the quickest way to manually configure the server during the actual work process is to:
1, manually install the Apache server, manually install the configuration PHP.
2, on the basis of the previously configured php.ini and httpd.conf files, two files are copied directly to the relevant directory.
And the httpd.conf need to modify the key directory, mainly:
Configuring the root directory
DocumentRoot D:/wwwroot-----This is the first place to put the Scarlet Letter section, which modifies the cost of Apache's website Code home folder, that is, the home folder that holds the project code.
<directory "D:/wwwroot" >-------This is the second place, ibid.

The two changes are basically done.

Manual installation of apache+mysql+php Environment Essentials under Windows XP

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.