win7上apache+php环境搭建
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.
?
?