All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Update PHP version in Simple Control Panel

Viewing post 1 to 15 (18 total posts)
1 2
Profile picture of wdunn

wdunn said 2 years ago:

How do I update the PHP version in a virtual dedicated server?

Profile picture of scottej23

GoDaddy Contributor scottej23 said 2 years ago:

It depends. What operating system does your virtual server have, Windows, Mac, Fedora, Ubuntu, CentOS?

Profile picture of marcone

marcone said 1 year, 12 months ago:

centOS 5
Can you help me?

Profile picture of daniel fein

danielfein said 1 year, 11 months ago:

can you please help!

Profile picture of scottej23

GoDaddy Contributor scottej23 said 1 year, 11 months ago:

For CentOS, the Yum update manager is typically the tool of choice for most updates.

First, try a ‘yum update php’ at the command line.

If that doesn’t work, you will probably need to modify your yum configuration file to point to the public CentOS repository instead of the local datacenter repository. Sometimes the latest packages are not available in the local data center mirror due to conflicts with other applications, such as some of the popular control panels.

Until these issues are resolved, simply modify your package manager configuration file to point to the public repository. In your case, for CentOS, update the yum repo file, /etc/yum.repos.d/CentOS-Base.repo. Modify the [updates] section to point to mirrorlist.centos.org as shown below:

File /etc/yum.repos.d/CentOS-Base.repo:

#released updates
[updates]
name=CentOS-$releasever – Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

Profile picture of bazaarboy

bazaarboy said 1 year, 11 months ago:

is there anyway to upgrade to PHP 5.3? i ran the yum upgrade and it only updated to 5.1

Profile picture of scottej23

GoDaddy Contributor scottej23 said 1 year, 11 months ago:

Did you modify your yum configuration file as specified in my previous post? Using the public CentOS repository will make the latest php 5.3 packages available to you via the yum command.

Profile picture of TimmyTodd2

timmytodd2 said 1 year, 11 months ago:

I did all of the above and it gave me the message No Packages marked for update. Any help would be appreciated.

Profile picture of scottej23

GoDaddy Contributor scottej23 said 1 year, 11 months ago:

Try doing:
# yum clean all
# yum update php

Let us know if that helps.

If that still doesn’t work. Please create a trouble ticket from within your Hosting Control Center and we can investigate.

Profile picture of Gotcha

gotcha said 1 year, 11 months ago:

I tried everything above and still get same msg as timmytodd2.

PHP is stucked at version 5.1.6 :-/

Profile picture of scottej23

GoDaddy Contributor scottej23 said 1 year, 11 months ago:

You are right. A “yum update php” does not work to get php 5.3.

RHEL/CentOS 5 has locked php at version 5.1.6. Php version 5.3 is available in package php53. However, installing it I found to be a little tricky. A “yum install php53″ results in conflict errors:
Error: php53-common conflicts with php-common

Please don’t do a “yum remove php”. That will result in removing package dependencies like the Simple Control Panel and the PhpMyAdmin.

Before you try updating php, please make a backup and be prepared to reprovision if necessary.
To update php to php53:

1) Remove php packages without removing dependencies
# rpm –nodeps -e php
# rpm -qa | grep php- | xargs rpm –nodeps -e

2) Now install php53:
# yum install php53*
# php -v
PHP 5.3.3 (cli) (built: Mar 30 2011 13:51:41)

If you are not comfortable doing this, some other options are to reinstall with Fedora instead of CentOS, which provides php 5.3 and Simple Control Panel is still available, or create a trouble ticket and pay a small fee to have our Expert Hands Linux admins install php 5.3 for you.

Also, here is a link to a custom RPM repository for the php 5.3 package:

http://www.webtatic.com/packages/php53/

Profile picture of Ultra

ultra said 1 year, 10 months ago:

here’s more info on upgrading to PHP 5.3 on a GoDaddy CentOs Virtual Dedicated Server:

(a.) Remove PHP 5.2 (w/o removing dependencies)

scottej23′s post has a couple of typos, remove PHP 5.2 with these commands:

$ rpm –nodeps -e php
$ rpm -qa | grep php- | xargs rpm –nodeps -e

(b.) Install PHP 5.3

–> I used the webtatic repo (they have PHP 5.3.6), as per scottej23′s link:

$ rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
$ yum –enablerepo=webtatic install php

(c.) Install PHP MySql extension, otherwise phpMyAdmin and MySQL Database will not be accessible via PHP:

$ yum –enablerepo=webtatic install php-mysql

(d.) Additionally

–> I had to re-install Pear
–> I had other issues and had to re-install mysql-server

Everything works now. Hope that helps…

- M

Profile picture of DaveD

GoDaddy Expert DaveD said 1 year, 10 months ago:

@ultra

Thanks for the additional information. I’m sure other users will find this helpful.

Profile picture of jghoward

jghoward said 1 year, 10 months ago:

I needed to update my CentOS Web Server to run PHP 5.3.6 in order to accomodate the latest Wordpress.

I followed the tips offered by @ultra above, as follows
(a.) Remove PHP 5.2 (w/o removing dependencies) $ rpm –nodeps -e php $ rpm -qa | grep php- | xargs rpm –nodeps -e

(b.) Install PHP 5.3 –> I used the webtatic repo (they have PHP 5.3.6): $ rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm $ yum –enablerepo=webtatic install php

(c.) Install PHP MySql extension, otherwise phpMyAdmin and MySQL Database will not be accessible via PHP: $ yum –enablerepo=webtatic install php-mysql

OK so I did that and everything seemed okay, until I realized my gd-library was missing, so I did:

# yum install php-gd

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * update: mirrors.kernel.org addons                                                   |  951 B     00:00 base                                                     | 2.1 kB     00:00 extras                                                   | 2.1 kB     00:00 update                                                   | 1.9 kB     00:00 Setting up Install Process Resolving Dependencies –> Running transaction check —> Package php-gd.i386 0:5.1.6-27.el5 set to be updated –> Processing Dependency: php-common = 5.1.6-27.el5 for package: php-gd –> Finished Dependency Resolution php-gd-5.1.6-27.el5.i386 from base has depsolving problems  –> Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-gd-5.1.6-27.el5.i386 (base) Error: Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-gd-5.1.6-27.el5.i386 (base)

Not sure what I need to do from here.

Profile picture of scottej23

GoDaddy Contributor scottej23 said 1 year, 10 months ago:

@jghoward

Looks like the webtatic repo is not enabled by default.

So try adding –enablerepo=webtatic to your yum command like:
# yum –enablerepo=webtatic install php-gd

Or modify the repo file itself at:
/etc/yum.repos.d/webtatic.repo

And set “enabled=1″

Hope that helps.

1 2

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.