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 求帮我调试一下freefem代码
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图