Heim >Backend-Entwicklung >PHP-Tutorial >apache2.4+php5.6 不能加载php5apache2_4.dll

apache2.4+php5.6 不能加载php5apache2_4.dll

ringa_lee
ringa_leeOriginal
2018-05-15 09:13:283263Durchsuche

httpd.exe: Syntax error on line 530 of C:/workspace/work/Apache24/conf/httpd.con  
f: Cannot load C:/workspace/work/php564/php5apache2_4.dll into server: \xd5\xd2\  
xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xb3\xcc\xd0\xf2\xa1\xa3  
我的php路径C:/workspace/work/php564/  
dll文件也存在  
vcredist_x64也尝试了各种版本 08 12 13  
始终报这个错。  
去掉PHP的模块就行了:  
# php5 support  
#LoadModule php5_module "C:/workspace/work/php564/php5apache2_4.dll"  
#AddHandler application/x-httpd-php .php  
# configure the path to php.ini  
#PHPIniDir "C:/workspace/work/php564/"  

回复讨论(解决方案)

httpd.exe: Syntax error on line 530 of C:/workspace/work/Apache24/conf/httpd.con  
f: Cannot load C:/workspace/work/php564/php5apache2_4.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xb3\xcc\xd0\xf2\xa1\xa3  
httpd.exe:在530行的C语法错误:C:/workspace/work/Apache24/conf/httpd.conf  
:无法加载C:/workspace/work/Apache24/php5apache2_4.dll到服务器:找不到指定的程序。  
逐个开放你注释掉的行  
应该是 php.ini 中设置不对

php.ini都是按照官方文档配置类一些,把那几个必要的选项前面的分号都去了。

php.ini 中没有必选项,不要 php.ini php 照样工作

去了一样报错,,奇怪了,我的apache2.4.10, php5.6.4, windows2003 64位的。

木有人帮我了吗?

windows2003 ???  
php 5.5 开始就不支持了


我今天早上也发现了找个问题,现在升级到了2008,非常感谢!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:php遇到中文分割问题Nächster Artikel:php 中的图片压缩