编译安装PHP出现Cannot load /usr/local/apache/modules/libphp5.so
2013-01-26 14:58
639 查看
CentOS,安装httpd-2.2.4 和php-5.2.3,一切顺利,
最后一步重新启动apache报如下错误:
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
解决办法:
原因是Linux有一个SELinux保护模式引起的。
关闭SELINUX的方法:
vi /etc/selinux/config 将SELINUX=enforcing 改成SELINUX=disabled 需要重启本文出自 “爱在7元钱” 博客,请务必保留此出处http://oakcdrom.blog.51cto.com/1940330/1126890
最后一步重新启动apache报如下错误:
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
解决办法:
原因是Linux有一个SELinux保护模式引起的。
关闭SELINUX的方法:
vi /etc/selinux/config 将SELINUX=enforcing 改成SELINUX=disabled 需要重启本文出自 “爱在7元钱” 博客,请务必保留此出处http://oakcdrom.blog.51cto.com/1940330/1126890
相关文章推荐
- Cannot load /usr/local/apache/modules/libphp5.so
- Cannot load /usr/local/apache/modules/libphp5.so
- 安装Mongodb驱动程序出现 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/ex
- Fedora 安装php出现错误 Cannot find libmysqlclient under /usr
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- 源码安装php提示Cannot find libmysqlclient under /usr/local/mysql
- 编译安装php, Cannot find libmysqlclient under /usr
- 安装Apache时 ./configure出现"/usr/local/src/httpd-2.2.21/srclib/apr":的解决方法
- Deprecated:function eregi() is deprecated in /usr/local/apache/libraries/lib_lang.php on line 8
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- 编译PHP时候报错:configure: error: Cannot find libmysqlclient under /usr 解决
- phpize 编译安装php扩展的时候出现Cannot find autoconf的解决方法
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 解决apache配置php7时出现的Cannot load ../php-5.6.13/php5apache2_4.dll into server:
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- LAMP编译:解決 64 CPU 位元 compiler 時 zlib 出现/usr/local/lib/libz.a(crc32.o)造成的問題 .
- linux2.6.35编译出现错误could not load /lib/modules/2.6.35/modules.dep
- PHP5.X系列命令行跑php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/··
- php 安装 configure: error: Cannot find libmysqlclient under /usr. 解决
- PHP linux服务器报错 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/的解决方法!