当前位置: 技术问答>linux和unix
RHELAS4 启动httpd服务问题
来源: 互联网 发布时间:2015-09-28
本文导语: 使用LINUX时间不长,这两天装了RHELAS4,配置WEB server(apache2+php+mysql)时遇到问题 现已将apache,php,mysql安装完成,在启动httpd服务时error: ------------------------ httpd failed. The error was: Starting httpd: Syntax error on line 6 of /etc/http...
使用LINUX时间不长,这两天装了RHELAS4,配置WEB server(apache2+php+mysql)时遇到问题
现已将apache,php,mysql安装完成,在启动httpd服务时error:
------------------------
httpd failed. The error was: Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: libstdc++.so.6: failed to map segment from shared object: Permission denied
[FAILED]
--------------------------------------------------
php.conf
file content:
-------------------------------------
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
-------------------------------------
注:注释掉# LoadModule php4_module modules/libphp4.so
the httpd server can start, but can't excute the php file
why that? how to solutions?
现已将apache,php,mysql安装完成,在启动httpd服务时error:
------------------------
httpd failed. The error was: Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: libstdc++.so.6: failed to map segment from shared object: Permission denied
[FAILED]
--------------------------------------------------
php.conf
file content:
-------------------------------------
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
-------------------------------------
注:注释掉# LoadModule php4_module modules/libphp4.so
the httpd server can start, but can't excute the php file
why that? how to solutions?
|
PHP装的正确吗?
把/etc/httpd/conf.d/php.conf
的
LoadModule php4_module modules/libphp4.so
先去掉
把/etc/httpd/conf.d/php.conf
的
LoadModule php4_module modules/libphp4.so
先去掉
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。