• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Upgrading to php 5.3

W

wxman

Guest
I'm on a Centos dedicated server running Plesk 10.0.1. I currently have php 5.2.16 and mysql 5.1.54 installed. Is it possible to upgrade php to either 5.2.5 or 5.3 without killing the whole system? Do I need to upgrade mysql too?
 
its possible. plesk10 is compatible with php 5.3 and you dont have to update mysql.
 
Thanks for the reply.
I already tried the upgrade through yum using SSH, and 5.2.17 was as far as I could get it. There must be a a repository I'm not getting. I used the steps at PHP - Atomicorp Wiki as a guideline.
 
Last edited by a moderator:
Hello,

I'm looking too for a way to surely install (upgrade) to php 5.3.
Should it be done using the Plesk panel, or not ?
How ?

Thanks for help.
 
No its not possilbe via ControlPanel because PHP is NOT a part of Plesk! PHP is provided by the Operating system you use and Plesk just use it. So if you wanna update PHP search for update steps for your operating system and php or post your question in the forum for your operating system.

Plesk is compatible with all PHP5 Versions.
 
Thanks.
I saw that, but...

13. Is PHP 5.2.5 released for CentOS?
Short answer: No.
A bit longer answer: No. As with each other program in CentOS, the version numbers of released software will not change over the life time of a CentOS product. CentOS 5.0 contained PHP 5.1.6, and that is the point version PHP will stay at for the life time of CentOS 5. It is possible that upstream or the CentOS team decides to push a newer version into some additionial repository. But there are no such plans at the moment.
From :
http://wiki.centos.org/FAQ/CentOS5#head-8b85501ca7f023bc0eeb0fef98143e10fb6adefc
 
yes there is NO official version. but you can update it "unoffical" if you want to do that...
that doese not mean you can not compile it yourself or use the atomic-version.
 
I'm using CentOS 5 and php 5.1.6
You mean that using your function only, i'll upgrade to php 5.3.5 ?
So simply ?
 
i upgraded from php 5.1x to 5.2.17 following your (very precious!) informations, but I got this message in mysql admin:
Your PHP MySQL library version 5.0.90 differs from your MySQL server version 5.1.54. This may cause unpredictable behavior.
what should i do about it?
 
Your PHP MySQL library version 5.0.90 differs from your MySQL server version 5.1.54. This may cause unpredictable behavior.

Same Error
 
The good thing about Centos and the reason we use it is because it stays stable for a long time.
Unfortunately that also means that the official Centos packages stay "old" for a long time.

Fortunately we can either port new stuff (such as PHP 5.3) ourselves, or get packages from good natured and helpful companies like Atomic Corp.

I have myself upgraded to PHP 5.3.5 from Atomic, and I see the same error message caused by the fact that the php mysql client libraries cannot easily be upgraded from the native CentOS version (5.0.90).

As the Mysql FAQ on Atomic (http://www.atomicorp.com/wiki/index.php/Mysql) states it:
---------------
MySQL Library Differs

When using some tools (most notably PHPMyAdmin) you may get a notice like this

Your PHP MySQL library version 5.0.90 differs from your MySQL server version 5.1.50. This may cause unpredictable behavior.

This message can be safely ignored. The reason that the library cannot be upgraded with the server is that, in Enterprise Linux, everything is compiled around the old library. Upgrading the library would break a number of programs compiled against it so, for compatibility's sake, it must remain as the one provided by the vendor directly.

If you REALLY need the latest libraries you can recompile php from the SRPMS.
---------------

I see the message from phpmyadmin.. I see other threads here stating that despite the Atomic statement about ignoring it, phpMyAdmin to some people seem to actually misbehave. Personally I just ignore it. I do not use phpmyadmin very often, but instead manage all databases from mysqlbench. (I do not have the need to separate databases into individual domains as Plesk otherwise provides.) I want to see them all under one hat. So I am just lucky that way, I guess. :)
 
I should add to my earlier reply, that I just tried to install the upgrade to Plesk 10.1.1, while running an otherwise perfect PHP 5.3.5 setup.

The upgrade fails miserably (leaving Plesk at version 10.0.1) because it cannot figure out to handle the later PHP version. On the way it apparently tries to downgrade PHP to a < PHP 5.2 version and failing to do this, failing the upgrade entirely.

So beware.
 
I believe Plesk 10 requires SiteBuilder (why is beyond me), which brings in a php5-ioncube-loader package from Plesk which only works with 'php < 5.2.0'. So yeah, Plesk seems to block using PHP 5.2+ indirectly this way... :(
 
This is what makes me disenchanted with Plesk. Sure, upgrade PHP, Apache, etc., so long as you do it via the command line. cPanel offers a simple, graphical upgrade tool, EasyApache, where you can add Apache and PHP, plus the usual run of modules (including EAccelerator). Not that I hate command lines, but I have better things to do with my time. Once the initial configuration is done, and the Web host usually takes care of that, your EasyApache upgrade process is just clicks away.

Yes, Plesk has a prettier interface, but I'm surprised this capability isn't present.
 
This is what makes me disenchanted with Plesk. Sure, upgrade PHP, Apache, etc., so long as you do it via the command line. cPanel offers a simple, graphical upgrade tool, EasyApache, where you can add Apache and PHP, plus the usual run of modules (including EAccelerator). Not that I hate command lines, but I have better things to do with my time. Once the initial configuration is done, and the Web host usually takes care of that, your EasyApache upgrade process is just clicks away.

Yes, Plesk has a prettier interface, but I'm surprised this capability isn't present.


simple answer: nobody should administrate any servers without command line skills. cpanel is for children. and my answer is not sarcastic !
 
Back
Top