Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do I upgrade from PHP 5.1.6 to PHP 5.2?

Posted on 2009-04-24
13
Medium Priority
?
602 Views
Last Modified: 2013-12-16
I have a dedicated server and I need to upgrade my PHP from 5.1.6 to 5.2.

Can someone give me step by step, idiot proof instructions?

I am running CentOS if that matters.
0
Comment
Question by:Donnie Walker
  • 7
  • 6
13 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 24225689
"yum update" if this is CentOS
config file remains in place, new PHP kicks in, just restart apache if not done by installer.
0
 

Author Comment

by:Donnie Walker
ID: 24225714
What is "yum update'?
0
 
LVL 62

Expert Comment

by:gheist
ID: 24225784
Shell command to be run as root user.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 62

Expert Comment

by:gheist
ID: 24225794
It asks for confirmation after displaying upgrade plan, so no danger trying it...
0
 

Author Comment

by:Donnie Walker
ID: 24226882
I entered yum update at the shell command and watched as it said it was updating and installing things.

It did not ask for any confirmations...it just started updated after I hit enter.

I rebooted the server and checked my PHP version and it is still 5.1.6...but I saw where yum said it was upgrading it.

Any ideas?
0
 
LVL 62

Expert Comment

by:gheist
ID: 24227881
Do you have any particular requirement for 5.2 that is not satisfied by securely patched 5.1?
0
 

Author Comment

by:Donnie Walker
ID: 24227938
Magento requires it. I may try doing the php-cgi work-around.  Thanks for your help. I did not know about the yum update. That will come in handy.
0
 

Author Closing Comment

by:Donnie Walker
ID: 31574214
Thanks
0
 
LVL 62

Expert Comment

by:gheist
ID: 24228276
Give 5.1 a try. CentOS does not include 5.2 in any release
0
 

Author Comment

by:Donnie Walker
ID: 24228323
Magento requires 5.2 and won't install on my 5.1.6.

But there is something called a PHP-CGI install for Magento that supposedly works.
0
 
LVL 62

Expert Comment

by:gheist
ID: 24228390
How exactly it does not work?
http://www.magentocommerce.com/wiki/welcome_to_the_magento_user_s_guide/chapter_2/#appendixphp5_cgi_setup

It kind of says it does not work with php4
0
 

Author Comment

by:Donnie Walker
ID: 24228531
http://www.magentocommerce.com/system-requirements

System requirements are PHP 5.2.

When I tried to install it, it told me it could not as it needed PHP 5.2.

I then read that I can do a PHP-CGI work-a-round to make it work on older versions.

I thought it would be easier to just update my PHP.
0
 
LVL 62

Expert Comment

by:gheist
ID: 24228673
You can edit required php version inside installer.
CGI does not seem like way to go...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question