store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Wed May 22, 2013 1:32 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 7 posts ] 
Author Message
 Post subject: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Wed Mar 09, 2011 6:03 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 19, 2007 3:47 pm
Posts: 220
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:
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:
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:
-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.


Top
 Profile  
 
 Post subject: Re: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Wed Mar 09, 2011 10:57 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
That means someone broke and/or removed yum from your system.


Top
 Profile  
 
 Post subject: Re: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Wed Mar 09, 2011 11:04 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 19, 2007 3:47 pm
Posts: 220
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.


Top
 Profile  
 
 Post subject: Re: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Wed Mar 09, 2011 11:25 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
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.


Top
 Profile  
 
 Post subject: Re: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Fri Mar 11, 2011 5:29 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
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:
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>


Top
 Profile  
 
 Post subject: Re: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Fri Mar 11, 2011 5:35 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
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


Top
 Profile  
 
 Post subject: Re: The Dreaded PHP Upgrade Fails... sadly as expected :)
Unread postPosted: Sun Mar 13, 2011 1:23 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 7 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group