http://www.leapsoul.cn/?p=695
需要注意的几点:
1. php分为vc6和vc9两种编译模式,如果跟apache配合,一定使用cv6的版本。 里面又分为thread safe和non-thread safe版本,应当选择thread safe版本,否则运行会报错。
2. 如果apache启动失败,可以通过命令行运行httpd.exe -e debug来查看具体的原因。
3. PHP 5+
MySQL is no longer enabled by default, so the php_mysql.dll
DLL must be enabled inside of php.ini. Also, PHP needs access to the
MySQL client library. A file named libmysql.dll is included in the
Windows PHP distribution and in order for PHP to talk to MySQL this file
needs to be available to the Windows systems PATH. See the FAQ titled
"How do I add my PHP directory to the PATH on Windows" for information
on how to do this. Although copying libmysql.dll to the Windows system
directory also works (because the system directory is by default in the
system's PATH), it's not recommended.
本文详细介绍了PHP的vc6编译模式选择、与Apache配合的注意事项,以及如何正确配置PHP与MySQL进行通信,包括启用MySQL扩展、设置PHP_INI环境变量、确保MySQL客户端库可用及系统PATH中包含PHP目录等关键步骤。
2028

被折叠的 条评论
为什么被折叠?



