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
2-2, configure directory index
2-3, combining php and Apache2
php.ini modification:
1. Set the way PHP passes parameters
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.
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
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.