Help - Search - Members - Calendar
Full Version: HOW-TO Upgrade PHP 4.0.6 to new version
The Planet Forums > Control Panels > Plesk
Cleaner
Hi There,

Sorry for the n00b question...
How do i upgrade the PHP 4.0.6 to a newer version ?

I've got a PLESK control panel...
mouse
Moved to > Plesk Support > Plesk General Server Talk >

See http://forum.rackshack.net/showthread.php?...&threadid=13097

the how to forum is for posting how to's only.. Thank you.. Mouse
Griffith
IF you have psa 5xx and the rpm version. GO to the plesk forum and search for "php +rpm" and search for posts posted by atomicturtle. He is "the" founder of plesks rpm version, and has made rpm releases of php that works like a charm!!!

Yesterday I installed php-4.2.3 rpms that he made, and they worked perfect. Were using php-4.2.3 rpms that was made for ensim, and they gave me some errors when I edited php.ini. But after I installed the rpms he made, it works with no errors!!!

http://forum.plesk.com
Cleaner
Thnkx... i'll try it !!
NightHawk
QUOTE
Originally posted by Griffith
IF you have psa 5xx and the rpm version. GO to the plesk forum and search for "php +rpm" and search for posts posted by atomicturtle. He is "the" founder of plesks rpm version, and has made rpm releases of php that works like a charm!!!  

Yesterday I installed php-4.2.3 rpms that he made, and they worked perfect. Were using php-4.2.3 rpms that was made for ensim, and they gave me some errors when I edited php.ini. But after I installed the rpms he made, it works with no errors!!!

http://forum.plesk.com


....the rpm's are a great help for those that don't want to do thier own source code work...
Rich2k
I still prefer installing the PHP binaries ever with plesk rpm... gives you a greater deal of control over what is going on with the php installation.
NightHawk
QUOTE
Originally posted by Rich2k
I still prefer installing the PHP binaries ever with plesk rpm... gives you a greater deal of control over what is going on with the php installation.


You are 100% correct, it does give you much better control (although you could install the .src rpm and then edit the spec file ..and recompile the binary rpms....to get the same control...but if you are going to do that..might as well do the source from the start)
Cleaner
Where can i get the PLESK RPM's ?
I need to re-install PLESK on my server cos i upgraded PHP , mySQL and Apache ....

Can anybody help me !

when i trie to use the control panel i get this error :

/index.php3: Unable to connect to database: 1045, in /usr/local/psa/admin/auto_prepend/auth.php3 on line 31, plesk_errormsg=1045, php_errormsg=
NightHawk
QUOTE
Originally posted by Cleaner
Where can i get the PLESK RPM's ?
I need to re-install PLESK on my server cos i upgraded PHP , mySQL and Apache ....

Can anybody help me !

when i trie to use the control panel i get this error :

/index.php3: Unable to connect to database: 1045, in /usr/local/psa/admin/auto_prepend/auth.php3 on line 31, plesk_errormsg=1045, php_errormsg=


goto plesk.com and login to the downloads section...you can find all the plesk rpm's there...

although....the plesk rpm's do not cover alot of the basic services on the server..only the ones that plesk modifies....the rest are your standard redhat rpm's that you can get at rpmfind.net
Rich2k
QUOTE
Originally posted by NightHawk
You are 100% correct, it does give you much better control (although you could install the .src rpm and then edit the spec file ..and recompile the binary rpms....to get the same control...but if you are going to do that..might as well do the source from the start)


I think the most confusing part of upgrading PHP on a plesk system (for someone who hasn't done it before) is that the default configure statement in phpinfo doesn't reflect their actual configuration (rather that of the default plesk build environment) and so you have to find out where everything is located and installed first... or install the dependencies manually first.

I remember having huge issues getting Sablotron to work with php 4.2.3 and above until I installed the sablotron binaries instead of rpms
NightHawk
QUOTE
Originally posted by Rich2k
I think the most confusing part of upgrading PHP on a plesk system (for someone who hasn't done it before) is that the default configure statement in phpinfo doesn't reflect their actual configuration (rather that of the default plesk build environment) and so you have to find out where everything is located and installed first... or install the dependencies manually first.

I remember having huge issues getting Sablotron to work with php 4.2.3 and above until I installed the sablotron binaries instead of rpms



very true on a standard install of plesk....but on a rpm install of plesk...the php is a standard redhat rpm that comes with the redhat cd's...not anything provided by plesk..so that resolves that issue..
Griffith
The safest thing you can do (I think) is to rebuild a php.src.rpm file. That way the php rpms will be made specific for you system and I believe it will be safe to install the rpms.

There are two ways to do it:
1. grab the php.src.rpm file, ex.

php-4.2.3:
http://www.atomicrocketturtle.com/psa/SRPM...4.2.3-1.src.rpm

php-4.3.0:
http://www.atomicrocketturtle.com/psa/SRPM...4.3.0-3.src.rpm

php-4.3.1:
http://www.atomicrocketturtle.com/psa/SRPM...4.3.1-1.src.rpm

when you have downloaded it you can run:
rpm -Uvh php_filename.src.rpm and then go into /usr/src/redhat/SPECS/ and there you can edit the php.spec file if you want to change the ./configure options. When you are satisfied with it you run: rpm -ba php.spec to make the rpms.

When this is done you can find them in /usr/src/redhat/RPMS

Then you just go to that dir and run rpm -Uvh *.rpm

2. If you don't want to edit the php.spec file you just run:
rpm --rebuild php_filename.src.rpm, go to /usr/src/redhat/RPMS and run rpm -Uvh *.rpm


BUT to work with .src.rpm files, you need to have alot of -devel rpms and a c++ compiler (I think that is what it is called)

I've got all this info from Atomicturtle in the plesk forum. AND he is one of the founderd ("the founder") of plesk and plesks rpm version... so.. more info can be found in the plesk forum (http://forum.plesk.com) or ask NightHawk. He knows how this stuff work icon_biggrin.gif
NightHawk
QUOTE
Originally posted by Griffith


I've got all this info from Atomicturtle in the plesk forum. AND he is one of the founderd ("the founder") of plesk and plesks rpm version... so.. more info can be found in the plesk forum (http://forum.plesk.com)  or ask NightHawk. He knows how this stuff work icon_biggrin.gif


lol...yeah...atomicturtle has some good rpm's....and if you have questions on working with his source rpm's...you should hit the forums at his site...as he explains it very very well.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.