Heim  >  Artikel  >  Backend-Entwicklung  >  大牛求救啊: 在apache中添加php模块时出现错误,怎么解决??

大牛求救啊: 在apache中添加php模块时出现错误,怎么解决??

WBOY
WBOYOriginal
2016-06-06 20:08:39997Durchsuche

<code>    apache: 2.2.31(x64版本)
    php   :5.2.5(不知道是否是32位,貌似官网里面没有64位版本的)
    
    载入语法:
PHPIniDir 'd:/php5.2.5'
LoadModule php5_module 'd:/php5.2.5/php5apache2_2.dll'
AddHandler application/x-httpd-php .php

然后就发生错误:httpd.exe: Syntax error on line 131 of D:/Apache2.2.31/conf/httpd.conf: Cannot load D:/php5.2.5/php5apache2_filter.dll into server:

很奇怪的是php5.2.5(不知道是否是32位,貌似官网里面没有64位版本的)目录下的apache模块很多:

</code>

大牛求救啊: 在apache中添加php模块时出现错误,怎么解决??

这该怎么安装??(要不是为了要正确运行ecshop,我就不弄这低版本的了.....),大神,求解救啊

回复内容:

<code>    apache: 2.2.31(x64版本)
    php   :5.2.5(不知道是否是32位,貌似官网里面没有64位版本的)
    
    载入语法:
PHPIniDir 'd:/php5.2.5'
LoadModule php5_module 'd:/php5.2.5/php5apache2_2.dll'
AddHandler application/x-httpd-php .php

然后就发生错误:httpd.exe: Syntax error on line 131 of D:/Apache2.2.31/conf/httpd.conf: Cannot load D:/php5.2.5/php5apache2_filter.dll into server:

很奇怪的是php5.2.5(不知道是否是32位,貌似官网里面没有64位版本的)目录下的apache模块很多:

</code>

大牛求救啊: 在apache中添加php模块时出现错误,怎么解决??

这该怎么安装??(要不是为了要正确运行ecshop,我就不弄这低版本的了.....),大神,求解救啊

PHP 5.2 没有 64位 只有32位的

apache 2.2 不知道 是64 还是32的

apache 和 php 版本 要对应

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