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.
I have installed PHP5 on our server (Red Hat Enterprise AS 3). I modified my httpd.conf file to load the PHP5 module. When I attempt to start Apache, I receive the following error:
"Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: undefined symbol: xmlXIncludeProcessFlags"
I tried doing a few searches on the error but couldn't find anything. Does anyone have any suggestions?
How did you install PHP5? What version of Apache are you using? If you installed PHP5 from source, please post the configure command you typed so we can see how it's setup.
I found that symbol on this site, which looks like PHP5 is looking for a libxml2 library, of some sort. Do you have libxml2 installed on your system? I would do this to see:
You're probably onto something here. When I initially tried running the configure command for the php install, I received an error that the version of libxml that was installed was too old. So I installed/upgraded to libxml2 2.6.24 and the configure command ran just fine... so I assumed all was OK.
Both /usr/lib and /usr/local/lib can be used to find shared libraries at runtime. You have two different libxml2 installations when you only want one. Since /usr/local/lib/libxml2.so.2.6.24 is newer than the 2.5 version in /usr/lib, you will need to find a way to remove the libxml2 installation in /usr (meaning, the files in /usr/lib, /usr/include, and so on) will neeed to be removed. See if you can use RedHat's package manager to uninstall libxml2 in /usr.
I ran the following prm command to uninstall libxml2:
rpm -e libxml2 --nodeps
I then ran a query to make sure it had been removed:
rpm -q libxml2
...which confirmed that the libxml2 rpm was no longer installed
I reran the find command, and it still showed (some but not all) libxml files in /usr/lib and I am still getting the same error as before when I try to start Apache with the php5 module loaded. I am a bit of a php noob, and am unsure of the next step... should I remove files manually? Perhaps it would have been a lot easier if I installed the update as a prm instead of a tar... but too late for that.
I followed your instructions and removed the files. When I tried to start Apache, I recieved an error that libxml2.so.2 could not be found. I then decided to copy the newer libxml files to the older version's directories. After doing this, Apache actually started successfully (even loading the php5 module). However when I viewed php files on the site, the page is completely blank. I commented out the load module for php 5, and it works as usual. So I dunno.....
You should be able to move the libxml2 files in /usr/local out of the way, re-run ldconfig, and then rebuild PHP5 as an Apache DSO to make sure it links against libxml2 in /usr.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.