Configure Apache2 + PHP5 + MYSQL5. Configuration process: (1) http. conf run PHP directly as a module of apache: LoadModulephp5_moduleC: phpphp5apache2. the dllAddTypeapplicationx-httpd-php.php configuration process in the Apache Directory:
(1) http. conf
Run PHP directly as a module of apache:
LoadModule php5_module "C:/php/php5apache2. dll"
AddType application/x-httpd-php. php
A www directory is created under the Apache Directory to store site files. in http. conf:
Change DocumentRoot "D:/Apache2/htdocs" to DocumentRoot "D:/Apache2/www"
Direct column Directory:
Options FollowSymLinks
AllowOverride None
Changed:
Options Indexes FollowSymLinks
AllowOverride None
Set the default character to simplified Chinese characters:
Adddefacharcharset GB2312
Restart apache
(2) php. ini
Copy php. ini-dist to C: change the name of php. ini in windows.
Extension_dir = "C: phpext"
Remove the following semicolon to support mysql:
; Extension = php_mysql.dll
Copy libmysql. dll and libmysqli. dll in the php directory to windows/system32.
Restart apache
(3) Mysql
Install Mysql:
Then browse "http: // localhost/phpmyadmin"
Scheme (1) http. conf runs PHP directly as a module of apache: LoadModule php5_module C:/php/php5apache2. dll AddType application/x-httpd-php. php is in the Apache Directory...