View Full Version : Update PHP
ecja
27th January 2008, 02:51 PM
Hello, it is the time to update the PHP but I have never update PHP on a Plesk before.
Can any one help?
Jc
atomicturtle
28th January 2008, 10:24 AM
Sure, what distribution are you using?
ecja
29th January 2008, 07:09 AM
Update PHP on Plesk 8.3 Fedora 5
atomicturtle
29th January 2008, 08:22 AM
No problem, I have 5.2.5 packages for that platform in my archive. Check out the wiki page here:
http://www.atomicorp.com/wiki/index.php/PHP
unika
31st January 2008, 11:27 AM
Plesk don't provide own PHP packages with Plesk, OS vendor packages are used. That's why you have an opportunity to upgrade your php version and add an additional extensions as you wish.
Plesk itself runs independently of server's PHP version. Latest Plesk version runs on PHP5. Therefore, if you can install PHP on Fedora, it will be fine with Plesk.
You simply download all needed PHP5 rpm packages and install them. One thing is you might also need this package to get rid of some dependencies error:
psa-phpx-configurator-xxx.noarch.rpm
It was compiled by Plesk developers. You can finв the package in the standart Plesk distributive.
anjanesh
26th February 2008, 07:18 AM
Is there any tutorial available on how a non-sys-admin can safely update their PHP and MySQL versions ?
I want to try to update from PHP 5.2.4 to PHP 5.2.5 & MySQL 5.0.45 to MySQL 5.0.51.
But very soon, I would want to update to PHP 5.3 & MySQL 5.1.
breun
27th February 2008, 06:51 AM
You realise that Fedora Core 5 is no longer receiving security updates for the OS packages? I'd start looking into a OS migration.
http://www.redhat.com/archives/fedora-announce-list/2007-June/msg00006.html
anjanesh
27th February 2008, 07:05 AM
Oh...sorry - Im on Fedora Core 7
atomicturtle
27th February 2008, 07:29 AM
Ive got PHP 5.2.5 and Mysql 5.0.54 packages in my archive for Fedora 7. Be advised that there are some behavior changes in PHP 5.2.5 that you need to be aware of if you make use of php_admin_value. There are several threads here, and on my forums about it.
anjanesh
27th February 2008, 07:38 AM
Ive got PHP 5.2.5 and Mysql 5.0.54 packages in my archive for Fedora 7.
I dont understand - shouldn't I be downloading the .tar.gz file from php.net and compile it from there ?
breun
27th February 2008, 07:42 AM
If you want to build your own packages you can download the .tar.gz, write a .spec file, build an .rpm, etc. But Scott has already done all the work for you. If you don't really need the features available in newer version, I recommend sticking with the packages supplied by the Fedora Project as they have all the security patches and are probably better tested.
I keep linking to this article to explain people you usually don't need the latest upstream version: http://www.redhat.com/security/updates/backporting/
anjanesh
27th February 2008, 07:49 AM
If you don't really need the features available in newer version, I recommend sticking with the packages supplied by the Fedora Project True, right now.
But I want to desperately update it to PHP 5.3 & MySQL 5.1.x as soon as they get released as GA. I am just trying to figure out how to update so that when I need to update to the above versions, I shoud be able to do so.
breun
27th February 2008, 07:54 AM
You'll need to install RPM packages. I believe the RPM packages that MySQL provides don't work correctly on Fedora or Red Hat/CentOS. Distributions generally don't do version upgrades during the lifetime of a release, so Fedora probably won't release PHP 5.3 and MySQL 5.1 for Fedora 7. Either you need to create these packages yourself or wait for a third party repository (like Atomic Rocket Turtle) to make them available.
Why are you so desperate to upgrade to bleeding edge versions of PHP and MySQL?
atomicturtle
27th February 2008, 07:55 AM
On the subject of Mysql 5.1, I ran into a problem with a plesk update failing on a C4 box the other day. Havent tried that on an F7 box yet, so definitely let us know when you try it.
anjanesh
27th February 2008, 08:15 AM
Distributions generally don't do version upgrades during the lifetime of a release, so Fedora probably won't release PHP 5.3 and MySQL 5.1 for Fedora 7
Thats terrible news !
Either you need to create these packages yourself or wait for a third party repository (like Atomic Rocket Turtle) to make them available.
I'll probably wait for the ART script to avoid troubleshooting issues on a production server.
Why are you so desperate to upgrade to bleeding edge versions of PHP and MySQL?
I just found out that most of PHP 6's features are going to be available in PHP 5.3 such as namespaces & late static binding, both of which are very much needed for new development. MySQL 5.1 (http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html) for partioning, XML and Event scheduler.
ecja
28th February 2008, 03:13 AM
Thank you, am going to try it
Jc
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.