Help - Search - Members - Calendar
Full Version: Upgrade PHP to 5.2 on Plesk 8.1
The Planet Forums > Control Panels > Plesk
KirkM
I have a new second fresh box with Plesk and did the auto update to 8.1. It seems to be OK (except for the really annoying advertisements SWSoft has put into the CP's).

The problem is that it still has a very old php version - 4.3.9 I believe. I have a bunch of scripts that need php 5 to work properly and so I now need an idiots tutorial on how to update php without borking the box. Any help pointing me in the right direction would be greatly appreciated.
Raul01
Plesk 8.1 offers you the option to choose between php4 and php5 for a certain domain. See Plesk changelog for details.
KirkM
Unfortunately, only on Windows. I'm running RHEL.

Since the upgrade to 8.1 doesn't upgrade the php or MySQL versions, I need to find a good way to do it that hopefully won't break it. I am hesitant to use up2date and I don't even know what they have for PHP in there.:confused:
Raul01
I thought this feature is available on linux platforms too. Unfortunately we wont know for sure until swsoft setups a live demo for 8.1 version.
KirkM
I would hope it would be, but if you read the "what's new" pdf, it states that under the Windows section and not the Linux / Unix section. It really looks from this document that it is only on Windows right now. And it certainly doesn't appear to be an option in my RHEL version of Plesk 8.1.

I've attached the pdf here.
Squire
Kirk you'll want to check out the repos at ATR. I'm 99% certain Scott has PHP 5 there, as well as lots of other stuff.

As long as you stay away from bleeding edge rpm's you'll be fine. Scott knows his stuff when it comes to Plesk. Dunno if he has any 8.1 stuff up yet. But if he doesn't I'm sure he'll have soemthing pretty soon.
KirkM
Thanks, I have already been all over his site. I'm trying to educate myself on all this server stuff. My other server is being handled by an outside server maintenance company but I really would like to do some things myself on this one at least while I am in the testing phase of my second box. I have to get familiar with using yum and all. I did the updating on my first server with Ensim a few years back but I must admit I don't remember much about how to do things. I've had my head stuck in PHP since then and forgot what little I learned about Linux.
agruetz
Hey, I have a solution it still a bit out dated and needs little work on the configs for the rpm but I have got a 5.1.x php for plesk rpm built. You can find it @ forums.helixdevelopment.com I will try to get it updated to 5.2.0 and the config issues fixed this week. It is pretty minor nothing a cp could not fix if you want to use the 5.1 rpm's.they work pretty well. I have been using them for a while now.
KirkM
Thanks. I'll go have a look.
DirtyHarry
Exact same problem here.

Anyhow, I tried using yum and ART's great repository, but I get this dependency errors:

[PHP]
--> Running transaction check
--> Processing Dependency: php <= 4.4.0 for package: php-sqlite2
--> Finished Dependency Resolution
Error: Missing Dependency: php <= 4.4.0 is needed by package php-sqlite2
[/PHP]

So, I removed the package php-sqllite2 using yum remove, and managed to install php 4 and mysql 4.1.21. Now I have just one problem... php gives me this warning:

Failed loading /usr/lib/ioncube/php_ioncube_loader_lin_4.3.so: /usr/lib/ioncube/php_ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update

Any idea?
agruetz
QUOTE (agruetz)
Hey, I have a solution it still a bit out dated and needs little work on the configs for the rpm but I have got a 5.1.x php for plesk rpm built. You can find it @ forums.helixdevelopment.com I will try to get it updated to 5.2.0 and the config issues fixed this week. It is pretty minor nothing a cp could not fix if you want to use the 5.1 rpm's.they work pretty well. I have been using them for a while now.


Well I gotta call myself an idiot on this one. I built the rpm's and tested them...but even posted them on my forums. I am building the 5.2.0 one as I write this so It should be posted out on the forums of my site by tomorrow. Sorry if this caused any confusion.
agruetz
QUOTE (DirtyHarry)
Exact same problem here.  

Anyhow, I tried using yum and ART's great repository, but I get this dependency errors:

[PHP]
--> Running transaction check
--> Processing Dependency: php <= 4.4.0 for package: php-sqlite2
--> Finished Dependency Resolution
Error: Missing Dependency: php <= 4.4.0 is needed by package php-sqlite2
[/PHP]

So, I removed the package php-sqllite2 using yum remove, and managed to install php 4 and mysql 4.1.21. Now I have just one problem... php gives me this warning:

Failed loading /usr/lib/ioncube/php_ioncube_loader_lin_4.3.so:  /usr/lib/ioncube/php_ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update

Any idea?


i am just guessing maybe soulds like zend might be trying to load before ioncube which == no no.
agruetz
Alright as promised I would post up some php 5.2.0 rpm's that work with plesk. I am uploading them now. It will probally be another hour or so till I get it full posted but for any of you actually working tonight or tomorrow. You will be able to find them on my forums at my site www.helixdevelopment.com. They have not been heavily tested but I am using them on mine along with suphp and have not and any issues. Enjoy and any feed back is welcome.
agruetz
Welp sorry all I have got them built but I am on vacation I am having trouble getting them uploaded because my internet connection is not so good. Keep checking in I will have em uploaded as soon as I can get a stable enough connection.
agruetz
Well it is finally up and appears to be working correctly. Now go download install and enjoy.

http://forums.helixdevelopment.com/showthr...php?p=11#post11
DirtyHarry
QUOTE (agruetz @ Dec 26 2006, 03:51 AM) *
Well it is finally up and appears to be working correctly. Now go download install and enjoy.
http://forums.helixdevelopment.com/showthr...php?p=11#post11



I may need to add some extra configuration bits to the current configuration you are offering. Are there some instructions we should follow when compiling php for plesk?

Thanks!
Jeboy
QUOTE (Squire @ Dec 4 2006, 08:00 PM) *
Kirk you'll want to check out the repos at ATR. I'm 99% certain Scott has PHP 5 there, as well as lots of other stuff.

As long as you stay away from bleeding edge rpm's you'll be fine. Scott knows his stuff when it comes to Plesk. Dunno if he has any 8.1 stuff up yet. But if he doesn't I'm sure he'll have soemthing pretty soon.


Hi, I tried wget -q -O - http://www.atomicorp.com/installers/asl |sh but it throws an error message "Insufficient server config - no servers found. Aborting"
James Jhurani
QUOTE (Jeboy @ May 15 2009, 03:44 AM) *
Hi, I tried wget -q -O - http://www.atomicorp.com/installers/asl |sh but it throws an error message "Insufficient server config - no servers found. Aborting"



Run it using "sh -x" instead of just "sh"(there will be quite a bit more output). This will show you exactly what is being executed when that error is invoked. It isnt the script itself, because that error message isnt anywhere to be found in the code. So it is probably coming from another binary being called by the script.
viraj
QUOTE (James Jhurani @ May 17 2009, 08:44 AM) *
Run it using "sh -x" instead of just "sh"(there will be quite a bit more output). This will show you exactly what is being executed when that error is invoked. It isnt the script itself, because that error message isnt anywhere to be found in the code. So it is probably coming from another binary being called by the script.
Hi all,

The HelixDevelopment forums no longer function icon_sad.gif

I found a more precise tutorial here which I felt like sharing for those in need.
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.