以C盘为例:
在apache的httpd中加入:LoadModule php5_module "c:/php/php5apache2.dll"
在
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>后加入:
AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps在DirectoryIndex index.html index.html.var后加入index.php,如下:
DirectoryIndex index.html index.html.var index.phpphp.ini中改动如下:
extension_dir = "c:\php\ext"注销掉
extension=php_mysql.dll前的“;”将c:\php5\ext中的
php_mysql.dll
复制到windows文件夹下。将php5中的dll文件复制到windows的system32文件夹下。注意重启apache生效
在apache的httpd中加入:LoadModule php5_module "c:/php/php5apache2.dll"
在
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>后加入:
AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps在DirectoryIndex index.html index.html.var后加入index.php,如下:
DirectoryIndex index.html index.html.var index.phpphp.ini中改动如下:
extension_dir = "c:\php\ext"注销掉
extension=php_mysql.dll前的“;”将c:\php5\ext中的
php_mysql.dll
复制到windows文件夹下。将php5中的dll文件复制到windows的system32文件夹下。注意重启apache生效
方法二 修改 php.ini,将 extension_dir = "c:\php5\ext" 填写你的php的扩展库目录,并重启WEB服务器。