In the past, we used a kit package for convenience. the version is apache1.X. mysql4.X, PHP4.X. it has expired for a long time now .. and there are a lot of vulnerabilities. Fortunately, I only applied them locally... however, in order to catch up with the trend, we just need to change the gun .. software version: mysql-5
In the past, we used a kit package for convenience. the version is apache1.X. mysql4.X, PHP4.X. it has expired for a long time now .. and there are a lot of vulnerabilities. Fortunately, I only applied them locally... however, in order to catch up with the trend, we just need to change the gun ..
Software version used:
Mysql-5.0.4-beta-win32
Apache_2.0.54-win32-x86-no_ssl
Php-5.0.3-Win32
PhpMyAdmin-2.6.2-rc1
ZendOptimizerWindows-i386
The above software can be downloaded from various major download websites. or you can directly log on to the official website to download the software. There are also a lot of configuration tutorials, so I will not write specific technical documents ..
Php official website http://www.php.net /? With Chinese language services, you can even find the latest Chinese php Manual
Php download page http://www.php.net/downloads.php
Official apache http://www.apache.org/
Download apache page http://archive.apache.org/dist/httpd/
MySQL, as a database software, is free of charge. of course, it is very efficient and has similar features as php.
MySQL official website http://www.mysql.com/
PhpMyAdmin for Windows V2.6.2
I downloaded it from the sky software site: http://www.skycn.com/soft/10687.html.
ZendOptimizerWindows, which is used to parse some source code and optimize it. I downloaded it from the sky software site.
Zend Optimizer V2.5.7 For Windows:
Is to download the sky software station: http://www.skycn.com/soft/20133.html
After installing all the programs, start to configure them .:
First configure apache2
Open the httpd. conf configuration file under the Apache2conf folder.
Final participation
LoadFile c:/php/php5ts. dll // load php5ts. dll, which is a required link library for both apache and IIS.
LoadModule php5_module c:/php/php5apache2. dll // load the apache module of php5
AddType application/x-httpd-php. php
'Www .knowsky.com
Find DocumentRoot, followed by 'c:/Apache2/htdocs', which may vary depending on the installation path,
It is the directory location of the web page. you can change it to the desired location. Note that the slash '/' is not the backslash ''. after all, this is transplanted under linux.
Check for directoryindex. then, it should be index.html. var.
This is the default homepage name. you need to add index. php index.htm
Then configure php
Rename php. ini-recommended in the C: php folder to php. ini.
PHP. ini: for security and efficiency considerations, we recommend that you use php. ini-recommended as the base for php. ini instead of php. ini-dist. At the same time, the search path for PHP. ini is no longer limited to % SystemRoot % in the PHP4 era. PHP5 searches for PHP. ini in the following path:
* PHPIniDir (Apache 2 module only)
* Registry key value: HKEY_LOCAL_MACHINESOFTWAREPHPIniFilePath
* Environment variable: % PHPRC %
* PHP5 Directory (for CLI) or web server directory (
SAPI modules)
* Windows directory (C: windows or C: winnt)
In these five plans, it is best to apply PHPIniDir in combination with Apache2, followed by the application % PHPRC % environment variable, and remember to give the server the read permission of PHP. ini on NTFS.