apache2.4加载不了SegmentFault

WBOY
Release: 2016-06-06 20:47:38
Original
1184 people have browsed it

按照http://langzhiwang888.iteye.com/blog/1859399重新装了下php,apache和mysql都OK了,but加载php总失败

httpd: Syntax error on line 176 of D:/apache/Apache24/conf/httpd.conf: Cannot lo
ad d:/php/ext/php5apache2_4.dll into server: %1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7
\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3

是版本问题吗还是 ps:win7 64位系统

回复内容:

按照http://langzhiwang888.iteye.com/blog/1859399重新装了下php,apache和mysql都OK了,but加载php总失败

httpd: Syntax error on line 176 of D:/apache/Apache24/conf/httpd.conf: Cannot lo
ad d:/php/ext/php5apache2_4.dll into server: %1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7
\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3

是版本问题吗还是 ps:win7 64位系统

你的php装的是win32的
建议你去装个集成环境
xmapp
或者
wampserver
在windows下没必要折腾这些东西

php目錄要有php5ts.dll
apache的httpd.conf要有如下配置,可以看到,我在配置里順便吧php.ini指向了。
我是windows用戶,linux下面應該更加簡單吧。

<code># 加載PHP
LoadModule php5_module "D:/ENVIRONMENT/php_54/php5apache2_2.dll"
AddType application/x-httpd-php .php .phtml .php5
AddType application/x-httpd-php-source .phps
PHPIniDir "D:/ENVIRONMENT/php_54/"
</code>
Copy after login

或者可以直接使用php-cgi.exe

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!