Error in PHP 5.0.5 and Apache 1.3.34 - Cannot load libphp5.so
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Error in PHP 5.0.5 and Apache 1.3.34 - Cannot load libphp5.so
hello gurus!!
i need your help once again. i just installed apache, mysql, and php. after i installed php and tried to run apache, i get this error:
[root@projectff conf]# apachectl start
Syntax error on line 221 of /www/conf/httpd.conf:
Cannot load /www/libexec/libphp5.so into server: /www/libexec/libphp5.so: cannot restore segment prot after reloc: Permission denied
/usr/sbin/apachectl start: httpd could not be started
line 221 in my httpd.conf states:
LoadModule php5_module libexec/libphp5.so
i have read similar thread like mine but i can't find the fix for this.
i am logged in as root and looked at the file /www/libexec/libphp5.so's permission. it has 755 on it. it is owned by root.
i am using: fedora core 4
installed: apache 1.3.34, mysql-5.0.15, and php-5.0.5.
It may be that the versions of Apache and PHP are so far apart, there are problems loading the lib. PHP5 is rather new (still in development, not mainstream yet I thought?) whereas Apache 1.3.x is fairly old school, Apache2.x has been considered stable for quite some time.
How did you install the applications, and if via RPM, where did you get the RPM's?
hello mc,
thanks for your reply. i am following this book about setting up lamp. they suggested to use apache 1.3 instead of apache 2 due to its stability. on php however, they suggested to use 5, due to its updated fixes. i have tried installing php 4 but same result. i am thinking of installing apache 2 with php 5, then apache 2 with php 4 if the previous does not work. i have another question for you: how do you uninstall an application? do you just write over it?
below are my steps for apache and php. i have them on scripts:
Thank you so much for the post. The fix resolved my issue.
Actaully do you mind explain what does this "chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.so" do and how does this resolve the issue?
What really happens is that SELinux security model blocks the access to certain parts and I am guessing libphp.so module of the apache is blocked by this.
So the command that I have found alters so php module is included into either exception or different group which receives proper access granted so apache server includes php module.
I did try to figure out a bit, but it is very complicated as you have understand SELinux.
So I gave up at a certain point.
It is not just a list of exceptions for certain program. The first thing I saw was understanding the state transitions so I didn't want to go to deep that this stage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.