upgrade php version

Status
Not open for further replies.

desizone

Active Member
31
2015
2
0
hello everyone

today i'm going to install vbulletin 4.2.3 on hetzner vps hosting. but i got problem i got msg i have to upgrade php version 5.3 to 5.4. but i don't know how to upgrade. please help me to upgrade. i have centos 6.7 with plesk
 
6 comments
It's been a long time but try..

Code:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php54w.x86_64 php54w-cli.x86_64 php54w-common.x86_64 php54w-gd.x86_64 php54w-ldap.x86_64 php54w-mbstring.x86_64 php54w-mcrypt.x86_64 php54w-mysql.x86_64 php54w-pdo.x86_64
service httpd restart

Sourced this through google, use at your own risk.
 
Assuming you are running plesk, 11.5 to 12.5

Upgrade from PHP 5.3

1) Run Autoinstaller from the server console.

2) On the main components list, check that the PHP 5.3 support option is selected.

3) Exit Autoinstaller.

4) Remove all PHP 5.3 components and the PHP 5.3 configurator.

You can check which packages will be removed with the following command:
Code:
rpm -qa | grep 'php53-'

All the listed packages will be removed with the following commands:
Code:
rpm -e --nodeps `rpm -qa | grep psa-php53-configurator-`
rpm -e `rpm -qa | grep 'php53-' | xargs`

5) Run Autoinstaller from the server console.

6) Check and install PHP5 support.

7) Install the epel and remi repositories:
Code:
wget dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

8) Enable the remi repository:
Code:
sudo vi /etc/yum.repos.d/remi.repo

In the [remi] section of the file, set the "enabled" option to 1.

9) Upgrade PHP with this command:

Code:
yum install php
 
Last edited:
Why not do this from plesk, upgrades and settings, add the new php version, install it and select it under your website, this way you dont need to do this manually from the command line and risk breaking plesk
 
upgrade php in plesk

Assuming you are running plesk, 11.5 to 12.5

Upgrade from PHP 5.3

1) Run Autoinstaller from the server console.

2) On the main components list, check that the PHP 5.3 support option is selected.

3) Exit Autoinstaller.

4) Remove all PHP 5.3 components and the PHP 5.3 configurator.

You can check which packages will be removed with the following command:
Code:
rpm -qa | grep 'php53-'

All the listed packages will be removed with the following commands:
Code:
rpm -e --nodeps `rpm -qa | grep psa-php53-configurator-`
rpm -e `rpm -qa | grep 'php53-' | xargs`

5) Run Autoinstaller from the server console.

6) Check and install PHP5 support.

7) Install the epel and remi repositories:
Code:
wget dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

8) Enable the remi repository:
Code:
sudo vi /etc/yum.repos.d/remi.repo

In the [remi] section of the file, set the "enabled" option to 1.

9) Upgrade PHP with this command:

Code:
yum install php

good way
 
Status
Not open for further replies.
Back
Top