Home >Backend Development >PHP Tutorial >2 Integration of php apache mysql
The software used in this example is php-5.4.28-Win32-VC9-x86.zip, httpd-2.2.21-win32-x86-no_ssl.msi, mysql-5.5.20-win32 .msi.
1. Go to the php installation directory and find php.ini. If not, find php.ini-development, copy and paste, and resave it as php.ini. Find extension_dir, change it to extension_dir="c:/php/ext" (based on the personal installation directory), and remove the ";" in front of it
2. Go to the Apache installation directory to find httpd -conf(C:Apache2.2confhttpd-conf),
Add the following content:
LoadModule php5_module "c:/php/php5apache2_2.dll" #(This file is subject to the version of Apache)
PHPIniDir "c:/php"
LoadFile "c:/php/libeay32.dll"
LoadFile "c:/php/ssleay32.dll"
AddType application/x-httpd-php .php x-httpd- php.html You can execute the php program, choose to add it depending on your personal situation
3, install After completing MySQL, find extension=php_mysql.dll in php.ini and remove the # in front of it