简体   繁体   English

PHP添加新的.dll使Apache服务器无法启动

[英]PHP adding new .dll makes Apache server unable to start

I am trying to add an extension to my PHP. 我正在尝试向我的PHP添加扩展。 I have the file - libssh2.dll - in the appropriate directory (as listed in my php.ini file) and made sure the extension=libssh2.dll. 我在适当的目录(如我的php.ini文件中列出的文件)中包含文件libssh2.dll,并确保extension = libssh2.dll。 I also copied the .dll file to system and system32 folders as other threads have suggested. 我还按照其他线程的建议将.dll文件复制到system和system32文件夹。 When I try to start my Apache server I get the following windows error: 当我尝试启动Apache服务器时,出现以下Windows错误:

Apache HTTP Server has encountered a problem and needs to close. Apache HTTP Server遇到问题,需要关闭。 We are sorry for the inconvenience. 我们对造成的不便很抱歉。

and Apache Monitor error: 和Apache Monitor错误:

The requested operation has failed! 请求的操作失败!

I check the log to see this: 我查看日志以查看以下内容:

[Tue Jul 26 16:43:06 2011] [warn] pid file C:/Program Files/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [2011年7月26日星期二16:43:06] [警告] pid文件C:/ Program Files / Apache / logs / httpd.pid被覆盖-不干净地关闭了以前的Apache运行?

I have tried to go in this direction but am completely stumped at this point. 我试图朝这个方向前进,但在这一点上我完全陷入了困境。 Hoping someone out there can help me and so I can figure out what's wrong. 希望有人在那里可以为我提供帮助,因此我可以找出问题所在。 Thanks in advance guys! 在此先感谢大家!

Cheers 干杯

I solved it by upgrading to 5.3. 我通过升级到5.3解决了它。 Somehow with the same settings it automagically worked. 使用相同的设置以某种方式自动运行。 Closing the issue now. 立即关闭问题。

I think that it is telling you that you need to remove just the previous pid file. 我认为这是在告诉您您只需要删除以前的pid文件。 Each time that you run apache a http.pid file is created in apache's bin folder. 每次运行apache时,都会在apache的bin文件夹中创建一个http.pid文件。 It contains the apache pid. 它包含Apache pid。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM