Some users engaged in program management development, you need to install Apache + MySQL + PHP environment in your WinXP computer, then how to operate? Today Xiaobian will share with you the specific installation steps.
Installation steps:
In the whole wamp environment, the essential work is as follows:
1, the configuration system can be called by default in the php dll file. .
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 parameter value
2, set 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.
Win10 upgrade 9879 failed error code solution tutorial ~ I believe users can not wait to upgrade to
In the win8 system, generally can see many programs in the menu, and the most basic is the attachmen
Suffix extensions believe that everyone is familiar with it, and the format behind the extension is
Since the official version of win10, many friends have upgraded win10, but after upgrading win10 wan
How to check the age of WinXP system to see how many years have passed with you
Win7 program does not respond to how to solve
What should I do if the Win7 system local connection cannot be found?
Win7 system ADSL disconnection problem solution
Win7 turns off full-duplex audio mode by group policy
Windows7 system shortcut key switch input method fails how to solve
How does win10 hide the icon in the lower right corner of the toolbar?
Win7 64-bit system RAR compressed file corruption how to fix
Turn off the Win7 system window edge automatically maximizes
Win7 system open web page error code ERR_EMPTY_RESPONSE solution
"Detonated" Win10 malware: Microsoft Sonar plans to expose, recruit security software engineer
How to set up wireless network access in Win7
Microsoft "locked" Win9 preview version Mini start menu function
Thunder offline download how to retrieve the file tips
How to create OEM partitions for GPT hard disks in Win8 system
After upgrading Win10, the screen keeps flashing. Solution
Analyze the situation where the U disk cannot stop the device
Win10 new browser What is the Microsoft "Spartan" browser interface?
How to completely shut down the operation center cortana in the win10 system?
Fun optimization tips Four tips for Windows optimization masters