您好,欢迎访问一九零五行业门户网

手工编译安装php后,重启apache时,libphp5.so: cannot restore

cannot load /www/modules/libphp5.so into server error (1/1) bigb89 : hi, i am trying to install php and configure it to work with apache. so far i have apache 2 and mysql 5 working just fine, but after intalling php i tried to restart apac
cannot load /www/modules/libphp5.so into server error
(1/1)
bigb89: hi, i am trying to install php and configure it to work with apache. so far i have apache 2 and mysql 5 working just fine, but after intalling php i tried to restart apache and i get the following error: cannot load /www/modules/libphp5.so into server: /www/modules/libphp5.so: cannot restore segment prot after reloc: permission denied. what's causing this error is the following line on my httpd.conf file: loadmodule php5_module        modules/libphp5.so. could anyone explain to me what's causing this error and how can i fix it?thanks in advance!
rlee923: hi,i assume you are using one of those linux with selinux enabled.the problem is caused by the security system - selinux, blocking it's access to libph5.so.chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.sothis is the magic line of the code, change the path so it points to the directory where you've installed apache2 if necessary.
其它类似信息

推荐信息