• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Upgrade PHP to 5.3.2?

B

belyakov

Guest
Hello,

I've just installed latest Plesk on a new Fedora Core8 box. Ok, it comes with PHP 5.2.6 but I need the latest 5.3.2 version. So I downloaded and compiled it from from sources like this:


>./configure;
>make;
>make install;


So now I came across a really strange issue: Everything is working fine, the plesk panel, the virtual hosts. When from console I do:

>php -v

I get the php 5.3.2 message, but my virtual hosts still use the 5.2.6 version for some reason. So how can I tell apache where's my PHP located?


Thanks a lot.
Dmitry.
 
Ok, so I guess no one knows.
Let me put it this way: can anyone please tell me where's the plesk PHP located and how can i update that?
 
Just detect original options for ./configure with usual phpinfo() function or with 'php -i' for default installed Plesk PHP and use it for compilation.
 
Your much better building a rpm and installing it, than compiling and copying since the rpm will update properly and compile with all the correct paths.

Take the fedora 13 srpm from koji and install fedora-packager, which will give you buildrpm and associated packages.

I have a friend with a FC7 server and the 5.3.2-f13 php builds perfectly.
 
But compiling options for ./configure should be the same as for original Plesk PHP. Not sure that you can guarantee it with SRPM using.
 
My FC11 and friends FC7 server have rpm built php-5.3.2 using fedora 13 php package from koji.

I yum installed them and plesk and all web sites show php-5.3.2-2 (the srpm was 5.3.2-2.fc13) and the forum specific software is running in php-5.3 mode

I never compile and install files, it's bad housekeeping as Fedora can't then keep track of the library changes. I always build rpms.

You cam then use yum or rpm to downgrade or back out.

Build yourself an updated yum from fc12 srpm and you can simply downgrade with yum downgrade php :)
 
On ubuntu?

How would you do this on Ubuntu? As when I do apt-get install php5 it just says I am already running the latest version - 5.2.4 which obviously isn't the latest version.
I am running Plesk 9.5.2 on ubuntu 8.04 on my VPS and really need to get php upto date to get PCI compliance.
I also need to update apache but it says the same - that i am already running the latest version which I am not apache 2.2.8 if I remember correctly (sorry off topic slightly)

I have added the ubuntu repositaries in the source.list but i still can't seem to get the latest versions.
I want to use apt if possible as I believe it keeps the dependancies - i don't want to screw it up :)

Thanks in advance for any help
Kind regards

Lloyd
(Linux noob)
 
Its .deb based so you also must be able to build packages for it.

Unless your running the very latest version (which plesk won't support yet anyway) your not going to find php-5.3.2 or httpd-2.2.15

However like in Fedora if you take the latest release, you will see these packages. Take the source rpms and build them on your server.

I am sure ubuntu like Fedora has its own forums and documentation about building packages.
 
Back
Top