douji8017 2018-12-02 18:22
浏览 86

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

First off, this is not related to Apache not running normally, it works perfectly under normal circumstances. 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. 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.

I edited line 29,021 of php5ts.dll, and only changed the src="..." attribute. 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!

Anyways, after editing this line, Apache did not start anymore, did not show any errors in the control panel or in 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".

My guess is that the culprit is on lines 17-19 of httpd-xampp.conf:

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?


Version info for anyone interested: XAMPP Control Panel v3.2.2 [ Compiled: Nov 12th 2015 ]

  • 写回答

1条回答 默认 最新

  • dtyqeoc70733 2019-04-28 22:57
    关注

    Try to download PHP 5 for win32.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么