Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to know how I can upgrade my php using plesk?

share|improve this question

closed as off-topic by HopelessN00b Jan 14 at 5:17

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 14 at 5:17

2 Answers 2

up vote 2 down vote accepted

I've done this using the atomic yum repository before. Instructions for yum are here:

To summarize:

sudo wget -q -O - | sh
sudo yum install php
sudo apachectl graceful # restart Apache for new PHP to be loaded

If course you need to be logged in with SSH as root to do this, no easy way that I know to do it from the Plesk interface. But I have done this on a Plesk 9.2 and a Plesk 9.5 installation before.

Edit: added sudo and apache restart in there

share|improve this answer
how can i get root access to my server, im using PUTTY!!! – pingpong Dec 24 '10 at 14:29
it says you need to be root to do this – pingpong Dec 24 '10 at 14:30
try adding sudo before each one: – Michael Petrov Dec 24 '10 at 14:34
it says sudo command not found, can i give you accesss to my server pleease this is so important!! – pingpong Dec 24 '10 at 14:36
take a look at the updated code, I added the sudos and also the apache restart which would be needed to load the new PHP copy – Michael Petrov Dec 24 '10 at 14:36

Now the atomic repo will directly install php 5.3 by default. So, just had a thought that this will be helpful for someone who is looking to install php 5.2.X from atomic.

wget -q -O - | sh
echo "exclude=php-*5.3*" >> /etc/yum.conf
yum upgrade php
yum -y remove atomic-release*  
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.