Install Apache + MySQL + PHP manually in Windows XP. apachemysql_PHP tutorial

Source: Internet
Author: User
In Windows XP, install Apache + MySQL + PHP manually. apachemysql. Key points of manually installing the Apache + MySQL + PHP environment in Windows XP. the essential work of apachemysql in the whole wamp environment is as follows: 1, the configuration system can manually install Apache + MySQL + php environment points for calling dll files in PHP in Windows XP by default. apachemysql

In the whole wamp environment, the essential work is as follows:

1The configuration system can call the dll files in php by default.
In IPVs, the dll file system is called by default. There are two methods.
The first is to copy the dll file to the C: \ windows \ system32 \ directory (for Windows 2000 operating system, it is C: \ WINNT \ system32.
The second type is. the address of the folder where the dll suffix file is located is appended to the path variable of the system. In this way, the dll file is automatically loaded into the memory by default when the system starts.
Third, modify extension_dir = "./" in php. ini to extension_dir = "D:/php5/ext"

Note: You need to restart the Apacche server to make it take effect.

2. apache configuration, in essence, enables apache server software to parse. php files.
Configure httpd. conf and php. ini respectively.

Httpd. conf:
2-1: configure the root directory
DocumentRoot D:/wwwroot ----- this is the first part. modify the red part to the main folder of the local apache website code, that is, the main folder that stores the project code.
------- This is the second part, the same as above.

2-2: configure the directory index
DirectoryIndex index.html. var index. php index.html


2-3, combined with php and Apache2
LoadModule php5_module D:/php5/php5apache2. dll ---------- load php in module mode
PHPIniDir "D:/php" -------------------- specify the location of the php configuration file php. ini
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html -------------- add file types that can execute php
DirectoryIndex index. php index.html. var ----- configure the default index directory file


Php. ini modification:
1. set the method for passing parameters in PHP.
Register_globals = Off/On

If it is set to Off, you can only use $ _ post ['variable name'] and $ _ GET ['variable name'] to pass parameters.
If it is set to On, you can directly use the $ variable name to obtain the passed parameter value.

2. set the dll module to be loaded. the following must be configured.
Extension = php_gd2.dll --------- GD Library extension file. Users can process images, such as generating images, cropping and compressing images, and watermarking images.
; 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 the dll module to be loaded. the above sections are basically removed.

The difference between wamp and lamp environments is that the system loads dll files in php in different ways,
The combination of apahce and php is basically the same in Windows and linux/unix. it is implemented by modifying httpd. conf and php. ini.

Therefore, the fastest way to manually configure the server is as follows:
1. manually install and configure the apache server.
2. copy the two files to the relevant directory based on the previously configured php. ini and httpd. conf files.
The key directories in httpd. conf need to be modified, mainly as follows:
Configure the root directory
DocumentRoot D:/wwwroot ----- this is the first part. modify the red part to the main folder of the local apache website code, that is, the main folder that stores the project code.
------- This is the second part, the same as above.

Make the changes.

Key points for manually installing the Apache + MySQL + PHP environment in XP. the essence of apachemysql in the whole wamp environment is as follows: 1, the configuration system can call dll files in php by default...

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.