Software download
Apache2.0.53 http://scmy.downloadsky.com/down/apache_2.0.53-win32-x86-no_ssl.msi
PHP5.0.3 http://scmy.downloadsky.com/down/php-5.0.3-win32.zip
Mysql4.1.10 http://yncnc.downloadsky.com:8080/down/mysql-4.1.10-win32.zip
PHPMYADMIN2.6.1 http: // http://voxel.dl.sourceForge.Net/SourceForge/phpmyadmin/phpmyadmin-2.6.1-pl3.zip
2. Installation
I like to put Apache, PHP, MySQL to the C drive, the catalog is
C: / apache group / apache2
C: / PHP
C: / Program Files / MySQL / MySQL Server 4.1
Unzip phpMyadmin to c: / apache group / apache2 / htdocs
3. Set
1) Let Apache2 support PHP5
By start menu> Apache http server 2.0.53> configure apache server> edit the apache httpd.conf configuration file to set the file httpd.conf, join in the appropriate position
LoadModule PHP5_MODULE "c: / php/php5apache2.dll" AddType Application / X-httpd-php .php I added this
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
# For php 5 Do Something Like this: loadModule php5_module "c: / php/php5apache2.dll" AddType Application / X-httpd-php .php
## The Following Directives Modify Normal Http Response Behavior To # Handle Known Problems With Browser IMPLEMENTATIONS.
This pHP5 adds Apache in Module.
2) Let PHP5 support MySQL
(1) Copy c: / php/php.ini-recommended to c: / windows to change the name to php.ini
turn up
EXTENSION = php_mysql.dll
Remove the front ";"
EXTENSION = php_mysql.dll
(2) Three files will be
C: / php/libmysql.dll
C: /PHP/EXT/PHP_MYSQL.DLL
C: /PHP/EXT/PHP_MYSQLI.DLL
Copy to C: / Windows / System 32
Heat Apache, PHP5 supports mysql
3) PHPMYADMIN configuration
Edit the config.inc.php under the PHPMYAdmin directory, join the root password
$ cfg ['Servers'] [$ I] ['Auth_Type'] = 'config'; // Authentication Method (config, http or cookie based)? $ cfg ['servers'] [$ I] ['User'] = 'root'; // mysql user $ cfg ['servers'] [$ I] ['password'] = 'xxxxxx'; // mysql password (ONLY NEEDED Save, open http: // localhost / phpMyadmin /index.php, complete the operation of the mysql database
To this server overall setting is basically completed, other settings such as security are slow,