#1  
Old 12th May 2011, 19:12
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default PHP Error Message

I'm trying to use simplexml.so (which I thought was supposed to be included in php5).

I'm getting these errors email to me:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/simplexml.so' - /usr/lib/php5/20090626+lfs/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0


I couldn't find any config files for this in /etc/php5/conf.d...so I added extension=simplexml.so in the mysql config file...and reloaded php. No errors on reload...but now I am getting these emails.

Any ideas?

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 13th May 2011, 00:32
CopalFreak CopalFreak is offline
Junior Member
 
Join Date: May 2011
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
Default

That seems like it may be related to this bug:
http://bugs.php.net/bug.php?id=53632&edit=1
you can type this at command line
php -v
If you get an older version (PHP 5.1 or something older than 5.2.17), I would
suggest getting the newer version and/or recompile, and reload.
If you already have an up dated version (PHP 5.3.5), post again..maybe somebody else can help.
Reply With Quote
  #3  
Old 13th May 2011, 04:18
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I'm running version 5.3.3-7+squeeze1 with Suhosin patch (cli) built March 18, 2011.

I'll try an upgrade.

Thanks.
Reply With Quote
  #4  
Old 17th May 2011, 05:24
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I upgraded to 5.3.5...and the error message went away. BUT, php scripts didn't execute at all.

I rolled back to php4 (which was still installed, and I removed v5 all together) and everything appears to be OK...other than I'm running v4!
Reply With Quote
  #5  
Old 17th May 2011, 08:15
CopalFreak CopalFreak is offline
Junior Member
 
Join Date: May 2011
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

I am guessing that there were either minor configuration changes or incompatibilities that prevented the newer version from running as hoped.
Installed 5.3.5 probably provided some newer version so of library files and made minor configuration changes that 'fixed' the errors you were having.
(I would still be on the look out for security holes though..especially if you are running this alongside a database which might be vulnerable to injection).

Going from v4 to v5.3.5 is a bit of a shift. Some of the older structures no longer function they way they used. That said, I would encourage you to attempt to update some of the outdated code to be more v5x compatible.
If you are working on a 'live' system, a second 'test' system might be in order..nothing fancy, just enough to test the code with the newer php. (you MIGHT be able to run them side-by side on two separate virtual servers on the same machine, but I would not recommend attempting it..It would be much better to make a duplicate copy of your existing system, and setup a 'plan of attack' for migrating it to the newer version of PHP..then upgrade that machine using that plan (modifying as needed)..then wiping it, duplicating the original machine again and using your plan to make sure that all goes very smooth and easy.
Once you have that down, start fixing the PHP code to work on the new version.
That way, when everything is ready, you can just execute the plan on the original machine (after a full backup of course), and copy over the new php code and yer all set.

Here is a guide that will help convert some of the old setup to the new.. not TOO much info, but some may be useful :
http://www.ibm.com/developerworks/op...os-php-v5migr/

You might also want to go over some changes that are completely backwards incompatible (once you make them, older version will no longer work) :
http://www.php.net/manual/en/migrati...compatible.php

You probably have to make some major changes to your setup and php files and that will take a while, so be prepared for the 'long haul'.. that said..once you have it, it will be much easier to maintain and should be more robust and faster.

http://www.php.net/
http://www.php.net/manual/en/migration53.php
http://www.google.com
and
useful places like http://www.HowToForge.com will be your best resources for information and research to help you get through this process.

Keep in mind that if you run a very small personal lesser-used site, and security, stability, and speed are not much of an issue in your scenario, it may not be worth the effort..unless you just like the challenge and learning new things.

Good luck with everything!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron errors guimnk General 1 5th April 2011 09:20
ISPConfig3 Debian Squeeze Crontab - Log petrichbg Installation/Configuration 5 22nd March 2011 12:25
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 22:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.