The Dreaded PHP Upgrade Fails... sadly as expected :)

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
KrazyBob
Forum Regular
Forum Regular
Posts: 310
Joined: Mon Mar 19, 2007 3:47 pm

The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by KrazyBob »

First, please know that I have searched the forums before asking for help.

I have reinstalled Virtuozzo 3 (because I refuse to pay by the month for Virtuozzo 4) and installed Plesk 10 for Linux using the web interface rather than ez-templates. The base OS is CentOS 4.8 64-bit but the container CentOS 5.5 (Final) 64-bit. I tried to update PHP and mySQL by first installing the atomic yum installer. It failed:

Code: Select all

Configuring the [atomic] yum archive for this system 

Installing the Atomic GPG key: OK
Yum was not detected. Attempting to resolve.. 

warning: m2crypto-0.16-6.el5.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: package rpm-python = 4.4.2-37.el5 was already added, replacing with rpm-python >= 4.4.2-47.el5
error: Failed dependencies:
        libbeecrypt.so.6()(64bit) is needed by rpm-python-4.4.2-47.el5.x86_64
        rpm = 4.4.2-47.el5 is needed by rpm-python-4.4.2-47.el5.x86_64
Downloading atomic-release-1.0-13.el5.art.noarch.rpm: OK
so I exited the container and used

Code: Select all

vzpkg install -p 277 yum
This put yum in the container. I then reran the atomic installer and it completed without errors.

Next, I attempted to upgrade PHP and got PHP 5.3.5, but also new errors:

Code: Select all

-bash-3.2# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/sqlite3.so' - /usr/lib64/php/modules/sqlite3.so: undefined symbol: sqlite3_clear_bindings in Unknown on line 0
PHP Deprecated:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP 5.3.5 (cli) (built: Jan 15 2011 19:02:42) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.5, Copyright (c) 2002-2011, by ionCube Ltd.
I am also unable to login to mysql using user admin or user root. Checking further shows that mysqld won't start and Plesk 10.1.1 won't start either.

Phew. What a hassle.

Making matters worse is that Parallels releases Plesk 10.x and installs PHP 5.1.2, but most applications require PHP 5.2.x or greater.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by scott »

That means someone broke and/or removed yum from your system.
KrazyBob
Forum Regular
Forum Regular
Posts: 310
Joined: Mon Mar 19, 2007 3:47 pm

Re: The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by KrazyBob »

Virtuozzo does not install yum by default. I used your installer and it produced errors. Is there something else that I should try? I'm happy to take advice. I have since destroyed the container, installed it again, used your installer without errors, and installed Plesk 10.1.1. But I have not tried upgrading PHP/mySQL again. I was waiting for your feedback and I appreciate any input yuou may provide.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by scott »

Just that you shouldn't use a system where yum has been removed. I'd recommend you find a VPS provider that doesn't do that.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by faris »

Scott, with Virtuozzo yum is not installed in a container by default. It is basically not in the OS template. The idea is that all OS and package updates are then done by Virtuozzo rather than yum in the container. This saves disk space and what have you.

However, to install yum (and dependancies, like python):

Code: Select all

vzpkg install -p [container id] yum
At this point the container now has yum and works just as though yum had been installed to start with and all OS and application updates can now be done via yum. (We actually do this for our customers by default).

[alternatively the hardware node admin can modify the OS template to have yum installed by default]

So it looks to me as though the problem here is just a 64-bit oddity, or symlink issue or that sort of thing rather than anything else.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by scott »

And I really appreciate how much extra f**king work that madness causes me. Seriously, next time you're in a bind Im sending you off on a wildly expensive goose chase. :P
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: The Dreaded PHP Upgrade Fails... sadly as expected :)

Unread post by faris »

What you talkin' about Willis?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply