After you manually compile and install php, When you restart apache, libphp5.so: cannotrestore

Source: Internet
Author: User
Cannotloadwwwmoduleslibphp5.sow.servererror (11) bigb89: Hi, IamtryingtoinstallPHPandconfigureittoworkwithApache. mismatch, butafterintallingPHPItriedtorestartApac

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. c Onf file: LoadModule php5_module modules/libphp5.so. cocould 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.