Home > Article > Backend Development > Install Apache+MySQL+PHP environment under Windows XP_PHP tutorial
In the entire wamp environment construction, the essential work is as follows:
1. The configuration system can call the DLL file in PHP by default.
Under Windows, the dll file system is in the calling state by default. There are two ways to use it.
The first is: Copy the dll file that needs to be called to the directory C:windowssystem32 (if it is a Windows 2000 operating system, it is C:WINNTsystem32).
The second is to append the address of the folder where the .dll suffix file is located to the system's path variable. In this case, when the system starts, the dll file will be automatically loaded into the memory by default.
The third method is: change php.ini; extension_dir = "./" to extension_dir = "D:/php5/ext"
Note that you need to restart the Apache server to take effect.
2. Apache configuration essentially allows the apache server software to parse .php files.
Configure in httpd.conf and php.ini respectively.
Modify in httpd.conf:
2-1, configure the root directory
The code is as follows:
2-2, configure directory index
The code is as follows:
2-3, combining php and Apache2
The code is as follows:
php.ini modification:
1. Set the way PHP passes parameters
The code is as follows:
Set to Off, which means you can only use $_post['variable name'] and $_GET['variable name'] to pass parameters
Set to On, you can directly use the $ variable name to get the passed parameter value
2. Set the dll module that needs to be loaded. The following must be configured.
The code is as follows:
Remove the semicolon and set the dll module that needs to be loaded. The above ones are basically to be removed.
The difference between wamp and lamp environment construction lies in the way the system loads dll files in php,
The combination of apahce and php is basically the same under window and linux/unix, and is achieved by modifying httpd.conf and php.ini.
Therefore, in the actual work process, the fastest way to manually configure the server is:
1. Manually install the apache server and manually install and configure php.
2. Based on the previously configured php.ini and httpd.conf files, copy the two files directly to the relevant directories.
The key directories in httpd.conf need to be modified, mainly:
Configure root directory
The code is as follows:
Just make these two changes and you’re basically done.
After the above configuration is completed, the environment is basically set up. I hope your friends will like it.