• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Php 4 to Php 5 upgrade

B

bonjurkes

Guest
Hello,

I have a question about upgrading php 4 to php 5 using yum update. I have centos 4.5 server. And i asked at their support forums as how can i upgrade to php 5 using yum update. Because i heard that php 4 support will be over at end of the year. And they give me a command like

yum enablerepo=centosplus update php

But i am not sure if it is a good idea to update php using centosplus repo, because i had some problems about using other repos for updating software.

So i have 2 questions,

Is it safe to upgrade php like the way i told above ?

If it is safe, is there a way to mess up plesk by updating php by this method.

Or i will be glad if anyone can tell a safe method to updating php.
 
Hi

You can upgrade PHP safely the described way. Also instead of centos repository it is possible to use the packages from atomicrocketturtle: http://www.atomicrocketturtle.com/

Plesk works with PHP 5 without problems. Do not forget to update the PHP modules and extensions as well.
 
how can i update php modules and extensions?

Because i was just planning to do as i explained above. What else should i do?
 
yum update php php-gd php-mysql php-imap
and so on, it depends on which modules you have installed,
generally with "yum" all the dependencies should be resolved automatically.
 
this is the error i get after the above command

Error: Missing Dependency: php <= 4.4.0 is needed by package php-sqlite2
Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-xml

I guess i am using php 4.3.9 , i always use yum update but it never updated php 4.4.0

and i didnt understand the 2nd missing dependency. I guess it requires centos5, but i read that its possible to update php 5 without updating to centos 5 also.
 
php -v

[root@server ~]# php -v
PHP 4.3.9 (cgi) (built: Sep 20 2007 19:31:11)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v3.1.16, Copyright (c) 2002-2006, by ionCube Ltd.

When i included php-xml and php-sqlite2 it also gives the same dependency error.

and i check the link, there is a problem that i dont know,

[root@server ~]# wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh

Atomic Archive installer, version 0.9.13
Configuring the [atomic] yum archive for this system

Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-6.el4.art.noarch.rpm: OK


The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages


[root@server ~]# yum update
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion



When i say --enablerepo=atomic, it says

[root@server ~]# yum --enablerepo=atomic update


Error getting repository data for atomic, repository not found


I dont know what is the problem now
 
Is that a CentOS 4 VPS? You should have 2 channels by default (base and updates), and atomic would be the third. That output isn't displaying any channels.
 
Back
Top