PHP 5.1 upgrade to PHP 5.2 - sqlite2 dependancy problem

Support/Development for PHP
gteh
Forum User
Forum User
Posts: 7
Joined: Wed Feb 10, 2010 3:46 pm

PHP 5.1 upgrade to PHP 5.2 - sqlite2 dependancy problem

Unread post by gteh »

Hi,

I have a VPS server running Centos 5 and Plesk 9.3. It comes with PHP 5.1.x and I am trying to install VBulletin forum application which requires 5.2 . The installer won't run at all unless 5.2 is installed.

This is a brand new server that was just provisioned and has nothing custom or installed that wouldn't come with a fresh Plesk/Centos server.

I followed the instructions at http://www.atomicorp.com/wiki/index.php/PHP to use the atomic installer.

After running 'yum upgrade' , probably about 100 packages or so were checked and updated, but at the end of it all, I get this error:

Code: Select all

--> Finished Dependency Resolution
php-sqlite2-5.1.6-200705230937.x86_64 from installed has depsolving problems
  --> Missing Dependency: php <= 5.2.0 is needed by package php-sqlite2-5.1.6-200705230937.x86_64 (installed)
Error: Missing Dependency: php <= 5.2.0 is needed by package php-sqlite2-5.1.6-200705230937.x86_64 (installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
PHP is still listed as 5.1.6 and I can't go any further.

Anyone have any insight on what I need to do next?

Thanks
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP 5.1 upgrade to PHP 5.2 - sqlite2 dependancy problem

Unread post by scott »

try removing php-sqlite2
gteh
Forum User
Forum User
Posts: 7
Joined: Wed Feb 10, 2010 3:46 pm

Re: PHP 5.1 upgrade to PHP 5.2 - sqlite2 dependancy problem

Unread post by gteh »

I had thought about that but I guess I went about it the wrong way and after reading your post I realized my mistake. I almost removed 'sqlite' rather than 'php-sqlite2' which looked like it would have wreaked major havoc.

I removed php-sqlite2 and then ran 'yum upgrade' and PHP was successfully upgraded.

Thank you!

Do I need to worry about installing php-sqlite for 5.2? or only if I run into a situation where I need it?
gteh
Forum User
Forum User
Posts: 7
Joined: Wed Feb 10, 2010 3:46 pm

Re: PHP 5.1 upgrade to PHP 5.2 - sqlite2 dependancy problem

Unread post by gteh »

one last thing...

When running 'php -v' I get this error now:

Code: Select all

php -v

Failed loading /usr/lib64/php/modules//php_ioncube_loader_lin_5.1_x86_64.so:  /usr/lib64/php/modules//php_ioncube_loader_lin_5.1_x86_64.so: undefined symbol: zend_unmangle_property_name_ex
PHP 5.2.12 (cli) (built: Jan 31 2010 12:53:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd.

I checked my /etc/php.ini file and can't find any reference to loading the 5.1 loader. But as indicated in php -v after Zend Engine, it looks like ioncube loader is working, so where do I go to remove the entry that tries to load the 5.1 file?

All I can find in /etc/php.ini is this:

Code: Select all

extension_dir = "/usr/lib64/php/modules"
but not sure if that is even related. The ioncube 5.2 loader exists in the modules folder along side the 5.1 loader. I just can't find where on the system it's even trying to load/include the 5.1
Thanks again.
gteh
Forum User
Forum User
Posts: 7
Joined: Wed Feb 10, 2010 3:46 pm

Re: PHP 5.1 upgrade to PHP 5.2 - sqlite2 dependancy problem

Unread post by gteh »

Nevermind. I figured it out.

Inside my /etc/php.d folder were these two files:

ioncube.ini
ioncube-loader.ini


I had to update ioncube-loader.ini from 5.1 to 5.2 loader and I had to delete ioncube.ini completely

Now everything works.

Thanks!
Post Reply