简体   繁体   English

XAMPP Apache不会以修改后的php5ts.dll开头

[英]XAMPP Apache Won't Start with Modified php5ts.dll

First off, this is not related to Apache not running normally, it works perfectly under normal circumstances. 首先,这与Apache无法正常运行无关,它在正常情况下可以正常运行。 However, I decided today to edit the file that I believe to contain the HTML for phpinfo() ( xampp\\php\\php5ts.dll ), no specific reason, I thought it'd be fun to change the PHP logo to some random image. 但是,我今天决定编辑我认为包含phpinfo()xampp\\php\\php5ts.dll )HTML的文件,没有具体原因,我认为将PHP徽标更改为一些随机图像会很有趣。 。 I made a backup, and tried editing. 我做了备份,然后尝试编辑。 I stopped Apache on XAMPP control panel, restarted for good measure, and it wouldn't start, I made sure that my edits didn't accidentally escape (or un-escape) any characters, so it's valid HTML. 我在XAMPP控制面板上停止了Apache,并重启了它,但它没有启动,我确保所做的编辑不会意外地转义(或取消转义)任何字符,因此它是有效的HTML。

I edited line 29,021 of php5ts.dll, and only changed the src="..." attribute. 我编辑了php5ts.dll的29,021行,仅更改了src="..."属性。 The original line can be found here . 原始行可以在这里找到。 Please note however: the code goes something like <a><img src="base64 for one image" /></a>data:image/png;base64,... , with the second (and the one that displays) image not being in an <img> tag, weird! 但是请注意:该代码类似于<a><img src="base64 for one image" /></a>data:image/png;base64,... ,第二个(以及显示的一个)图片不在<img>标记中,很奇怪!

Anyways, after editing this line, Apache did not start anymore, did not show any errors in the control panel or in xampp\\apache\\logs . 无论如何,在编辑此行之后,Apache不再启动,在控制面板或xampp\\apache\\logs也未显示任何错误。 I did however find a few errors in the Application section of Event Viewer. 但是,我确实在“事件查看器”的“应用程序”部分中发现了一些错误。 My error is: 我的错误是:

httpd.exe: Syntax error on line 521 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 17 of C:/xampp/apache/conf/extra/httpd-xampp.conf: Cannot load C:/xampp/php/php5ts.dll into server: The Apache service named is not a valid Win32 application.

Line 521 of xampp\\apache\\conf\\httpd.conf is Include "conf/extra/httpd-xampp.conf" . xampp\\apache\\conf\\httpd.conf第521行是Include "conf/extra/httpd-xampp.conf"

My guess is that the culprit is on lines 17-19 of httpd-xampp.conf : 我的猜测是罪魁祸首在httpd-xampp.conf第17-19行:

LoadFile "C:/xampp/php/php5ts.dll" LoadFile "C:/xampp/php/libpq.dll" LoadModule php5_module "C:/xampp/php/php5apache2_4.dll"

Nothing turned up for this error on Google, anyone have any ideas? 在Google上没有出现此错误的任何消息,有人有任何想法吗?


Version info for anyone interested: XAMPP Control Panel v3.2.2 [ Compiled: Nov 12th 2015 ] 有兴趣的人的版本信息:XAMPP控制面板v3.2.2 [编译:2015年11月12日]

尝试为win32下载PHP 5。

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

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