LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-03-2006, 05:21 PM   #1
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Rep: Reputation: 0
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!
 
Old 05-03-2006, 05:39 PM   #2
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-03-2006, 06:02 PM   #3
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 05-03-2006, 07:43 PM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-03-2006, 08:20 PM   #5
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 05-04-2006, 02:16 AM   #6
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-04-2006, 07:37 PM   #7
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 05-04-2006, 08:53 PM   #8
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-04-2006, 09:32 PM   #9
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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.....
 
Old 05-04-2006, 09:46 PM   #10
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-04-2006, 09:48 PM   #11
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-04-2006, 10:13 PM   #12
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 05-05-2006, 04:31 PM   #13
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-06-2006, 09:38 PM   #14
george3380
LQ Newbie
 
Registered: May 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading PHP with RH 9 rtcary Linux - General 1 09-11-2005 11:27 AM
Problems after upgrading php and apache :( sys7em Slackware 3 09-08-2005 12:46 AM
Upgrading php? rickycen Linux - Newbie 4 09-02-2005 08:24 PM
Upgrading php 4.2.2 to 4.3.2 maceking Linux - Software 1 06-30-2003 02:02 PM
upgrading php zurron Linux - Software 6 02-18-2003 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration