今天发现公司的服务器上Apache能正常启动,但是却无法访问网站,查看日志发现以下错误。
[Thu Jun 30 08:23:21 2011] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.3.5 configured -- resuming normal operations
[Thu Jun 30 08:23:21 2011] [notice] Server built: Dec 10 2008 00:10:06
[Thu Jun 30 08:23:21 2011] [notice] Parent: Created child process 3652
[Thu Jun 30 08:23:22 2011] [notice] Child 3652: Child process is running
[Thu Jun 30 08:23:22 2011] [notice] Child 3652: Acquired the start mutex.
[Thu Jun 30 08:23:22 2011] [notice] Child 3652: Starting 64 worker threads.
[Thu Jun 30 08:23:22 2011] [notice] Child 3652: Starting thread to listen on port 80.
经过在网上搜索,解决办法如下。
1 将php.ini所在目录添加到环境变量path中
2 新建系统变量 PHPRC=“php.ini所在目录”
3 如果经过以上两部还是不成功那就出绝招:将php安装目录下libmysql.dll文件拷贝到windows/system32下
4 将libmysql.dll拷贝到apache/bin下
我是经过124步骤之后就成功了:)

![[C#]采集网页图片采集程序[原创]](http://www.chendw.cn/wp-content/uploads/2008/07/2cb95fa7c6f940b391b5b3cdef52e29a.jpg)
