Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-03-2006, 05:21 PM
|
#1
|
LQ Newbie
Registered: May 2006
Posts: 7
Rep:
|
Problems upgrading to PHP 5
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?
Thanks!
|
|
|
05-03-2006, 05:39 PM
|
#2
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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.
Peace...
|
|
|
05-03-2006, 06:02 PM
|
#3
|
LQ Newbie
Registered: May 2006
Posts: 7
Original Poster
Rep:
|
Yeah I installed it from source. I ran the following configure command:
./configure --with-apxs2=/usr/sbin/apxs --with-mysql
The server is running Apache 2.0.46
|
|
|
05-03-2006, 07:43 PM
|
#4
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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:
$ su
# find / -name "*xml2*"
and post the results here.
Peace...
|
|
|
05-03-2006, 08:20 PM
|
#5
|
LQ Newbie
Registered: May 2006
Posts: 7
Original Poster
Rep:
|
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.
Here's the results from the command you gave me:
/usr/bin/xml2-config
/usr/include/libxml2
/usr/lib/libxml2.a
/usr/lib/libxml2.la
/usr/lib/libxml2.so
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.5.10
/usr/lib/python2.2/site-packages/drv_libxml2.py
/usr/lib/python2.2/site-packages/libxml2.py
/usr/lib/python2.2/site-packages/libxml2mod.a
/usr/lib/python2.2/site-packages/libxml2mod.la
/usr/lib/python2.2/site-packages/libxml2mod.so
/usr/lib/xml2Conf.sh
/usr/local/bin/xml2-config
/usr/local/include/libxml2
/usr/local/lib/libxml2.so.2.6.24
/usr/local/lib/libxml2.so.2
/usr/local/lib/libxml2.so
/usr/local/lib/libxml2.la
/usr/local/lib/libxml2.a
/usr/local/lib/xml2Conf.sh
/usr/local/lib/python2.2/site-packages/libxml2.py
/usr/local/lib/python2.2/site-packages/drv_libxml2.py
/usr/local/lib/python2.2/site-packages/libxml2mod.so
/usr/local/lib/python2.2/site-packages/libxml2mod.la
/usr/local/lib/python2.2/site-packages/libxml2mod.a
/usr/local/share/doc/libxml2-2.6.24
/usr/local/share/doc/libxml2-2.6.24/html/Libxml2-Logo-180x168.gif
/usr/local/share/doc/libxml2-2.6.24/html/Libxml2-Logo-90x34.gif
/usr/local/share/doc/libxml2-python-2.6.24
/usr/local/share/gtk-doc/html/libxml2
/usr/local/share/gtk-doc/html/libxml2/libxml2.devhelp
/usr/local/share/gtk-doc/html/libxml2/libxml2-c14n.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-catalog.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-dict.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-encoding.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-entities.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-globals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-hash.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-list.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-parser.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-pattern.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-SAX.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-schematron.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-threads.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-tree.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-uri.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-valid.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xlink.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xpath.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html
/usr/local/man/man1/xml2-config.1
/usr/share/doc/libxml2-2.5.10
/usr/share/doc/libxml2-devel-2.5.10
/usr/share/doc/libxml2-devel-2.5.10/Libxml2-Logo-180x168.gif
/usr/share/doc/libxml2-devel-2.5.10/Libxml2-Logo-90x34.gif
/usr/share/doc/libxml2-devel-2.5.10/libxml2-api.xml
/usr/share/doc/libxml2-python-2.5.10
/usr/share/doc/libxml2-python-2.5.10/libxml2class.txt
/usr/share/man/man1/xml2-config.1.gz
Thanks again for your help.
Last edited by george3380; 05-03-2006 at 08:22 PM.
|
|
|
05-04-2006, 02:16 AM
|
#6
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Thanks for posting that. I believe here is a possible source of conflict:
Quote:
/usr/bin/xml2-config
/usr/include/libxml2
/usr/lib/libxml2.a
/usr/lib/libxml2.la
/usr/lib/libxml2.so
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.5.10
/usr/lib/python2.2/site-packages/drv_libxml2.py
/usr/lib/python2.2/site-packages/libxml2.py
/usr/lib/python2.2/site-packages/libxml2mod.a
/usr/lib/python2.2/site-packages/libxml2mod.la
/usr/lib/python2.2/site-packages/libxml2mod.so
/usr/lib/xml2Conf.sh
/usr/local/bin/xml2-config
/usr/local/include/libxml2
/usr/local/lib/libxml2.so.2.6.24
/usr/local/lib/libxml2.so.2
/usr/local/lib/libxml2.so
/usr/local/lib/libxml2.la
/usr/local/lib/libxml2.a
/usr/local/lib/xml2Conf.sh
|
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.
Peace...
|
|
|
05-04-2006, 07:37 PM
|
#7
|
LQ Newbie
Registered: May 2006
Posts: 7
Original Poster
Rep:
|
Hello again.
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.
Also, here was the result of the latest find command:
/usr/bin/xml2-config
/usr/include/libxml2
/usr/lib/libxml2.a
/usr/lib/libxml2.la
/usr/lib/libxml2.so
/usr/lib/libxml2.so.2
/usr/lib/python2.2/site-packages/drv_libxml2.py
/usr/lib/python2.2/site-packages/libxml2.py
/usr/lib/python2.2/site-packages/libxml2mod.a
/usr/lib/python2.2/site-packages/libxml2mod.la
/usr/lib/python2.2/site-packages/libxml2mod.so
/usr/lib/xml2Conf.sh
/usr/local/bin/xml2-config
/usr/local/include/libxml2
/usr/local/lib/libxml2.so.2.6.24
/usr/local/lib/libxml2.so.2
/usr/local/lib/libxml2.so
/usr/local/lib/libxml2.la
/usr/local/lib/libxml2.a
/usr/local/lib/xml2Conf.sh
/usr/local/lib/python2.2/site-packages/libxml2.py
/usr/local/lib/python2.2/site-packages/drv_libxml2.py
/usr/local/lib/python2.2/site-packages/libxml2mod.so
/usr/local/lib/python2.2/site-packages/libxml2mod.la
/usr/local/lib/python2.2/site-packages/libxml2mod.a
/usr/local/share/doc/libxml2-2.6.24
/usr/local/share/doc/libxml2-2.6.24/html/Libxml2-Logo-180x168.gif
/usr/local/share/doc/libxml2-2.6.24/html/Libxml2-Logo-90x34.gif
/usr/local/share/doc/libxml2-python-2.6.24
/usr/local/share/gtk-doc/html/libxml2
/usr/local/share/gtk-doc/html/libxml2/libxml2.devhelp
/usr/local/share/gtk-doc/html/libxml2/libxml2-c14n.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-catalog.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-dict.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-encoding.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-entities.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-globals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-hash.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-list.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-parser.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-pattern.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-SAX.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-schematron.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-threads.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-tree.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-uri.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-valid.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xlink.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xpath.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html
/usr/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html
/usr/local/man/man1/xml2-config.1
/usr/share/doc/libxml2-devel-2.5.10
/usr/share/doc/libxml2-devel-2.5.10/Libxml2-Logo-180x168.gif
/usr/share/doc/libxml2-devel-2.5.10/Libxml2-Logo-90x34.gif
/usr/share/doc/libxml2-devel-2.5.10/libxml2-api.xml
/usr/share/doc/libxml2-python-2.5.10
/usr/share/doc/libxml2-python-2.5.10/libxml2class.txt
/usr/share/man/man1/xml2-config.1.gz
/usr/src/redhat/SOURCES/libxml2-2.6.24.tar.gz
/usr/src/redhat/SPECS/libxml2.spec
Thanks again for your continued help.
|
|
|
05-04-2006, 08:53 PM
|
#8
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Ok, I would do this:
$ su
# cd /usr/bin
# rm xml2-config
# cd ../include
# rm -fR libxml2
# cd ../lib
# rm -fR libxml2*
# rm xml2Conf.sh
# /sbin/ldconfig
# exit
$
Make sure /usr/local/bin is in your path.
Then I would try it again.
Peace...
|
|
|
05-04-2006, 09:32 PM
|
#9
|
LQ Newbie
Registered: May 2006
Posts: 7
Original Poster
Rep:
|
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.....
|
|
|
05-04-2006, 09:46 PM
|
#10
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
So, is everything working now or are you having PHP issues?
It looks like Apache was built against libxml2 in /usr, which is why Apache complained. Sorry about that.
Peace...
|
|
|
05-04-2006, 09:48 PM
|
#11
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
To be on the safe side, I would recompile and install PHP5 just to make sure it links against the libxml2 files now in /usr.
Peace...
|
|
|
05-04-2006, 10:13 PM
|
#12
|
LQ Newbie
Registered: May 2006
Posts: 7
Original Poster
Rep:
|
Still no luck loading the PHP 5 module. Is there an easy way for me to install libxml2 into the /usr instead of /usr/local?
|
|
|
05-05-2006, 04:31 PM
|
#13
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Can you post the errors you're getting now?
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.
Peace...
|
|
|
05-06-2006, 09:38 PM
|
#14
|
LQ Newbie
Registered: May 2006
Posts: 7
Original Poster
Rep:
|
When I load the php 5 module, all PHP pages show up completely blank.
When I run ldconfig it reports: /usr/lib/libxml2.so.2 is not a symbolic link
|
|
|
All times are GMT -5. The time now is 02:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|