当前位置: 技术问答>linux和unix
在Linux上安装配置php遇到的问题..急!
来源: 互联网 发布时间:2016-10-04
本文导语: [root@localhost /]# service httpd start 启动 httpd:httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: w...
[root@localhost /]# service httpd start
启动 httpd:httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: wrong ELF class: ELFCLASS32 [失败]
配置php时启动Apache出现这个错误导致Apache不能启动.正常工作..非常郁闷.请高手赐教
启动 httpd:httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: wrong ELF class: ELFCLASS32 [失败]
配置php时启动Apache出现这个错误导致Apache不能启动.正常工作..非常郁闷.请高手赐教
|
运行一下
MS你在64位OS上用32bit .so文件引起的问题
file /etc/httpd/modules/libphp5.so
ldd /etc/httpd/modules/libphp5.so
MS你在64位OS上用32bit .so文件引起的问题
|
你怎么安装的php 貌似libphp5.so这个文件有问题。
|
重装下试试
|
查看那个文件是否可读,selinux授权否?
|
看看文件权限
|
module 没有配置好
|
就是32位与64位的问题,,,3楼正解吧