Because of a long time no environment, in Linux on the Apache, PHP environment, encountered libphp5.so can not generate this problem, I also bothered me for half a day, is very depressed. From the Internet to find a variety of information, are blindly reproduced, too boring a pile of people, their success did not succeed in the first reprint, despise. I tried for half a day and did not solve. Here's a list of my correct solutions:
FAQ One: Configure Apache to prompt for error after opening libphp5.so file
/usr/local/apache2/modules/libphp5.so:no such file or directory
Answer: Found modules below no libphp5.so file, the installation apache2 when the configuration problems, need to recompile installation, must be used./configure--enable-so this way. Then reinstall make clean-> make-> make install. Then reinstall PHP and install it with the./configure--with-apxs2=/usr/local/apache2/bin/apxs this way then make & make install. If this problem still occurs, you can reinstall Apache and PHP
FAQ Two: When configuring Apache PHP in CentOS prompts for errors
Cannot restore segment prot after Reloc:permission denied
Answer: Baidu can check the data, about the CentOS in the SELinux. SELinux issues, protection of Lib library.
Close SELINUX
Vi/etc/selinux/config
#SELINUX =enforcing #注释掉
#SELINUXTYPE =targeted #注释掉
Selinux=disabled #增加
: wq! #保存退出
Shutdown-r now# reboot System