Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 01:45:54 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Upgrading Apache and PHP using Yum on a non-cPanel server  (Read 2642 times)
Danielle
Resident Alien
Administrator
Berserker Poster
*****
Offline Offline

Posts: 8835


nihil sunt omnia


WWW
« on: September 12, 2006, 10:26:19 AM »

Hi,

To upgrade PHP 4 (not PHP5) on a non-cPanel server such as one with Webmin, you can do the following:

1. First, backup grub.conf:

Code:
cp /etc/grub.conf /etc/grub.conf.back

2. Run yum upgrade:

Code:
yum update

3. Let yum process, and once it is done, check grub to show the new and old kernel:

Code:
vi /etc/grub.conf

It should show the new kernel and the old kernel in that file.  Compare the one you backed up (/etc/grub.conf.back) to check that the old kernel is truly listed in the new file.  If it isn't, you must copy the last kernel info over from /etc/grub.conf.back file and add it below the new kernel.

Also, check the top line has the following:

Code:
default=0

If instead it has:

Code:
default=1

Change this 1 to a 0 before you leave the file.

Check the kernel now shows the new version:

Code:
uname -r

Now that you've made sure the new kernel is upgraded and the server will still boot to the old if the new doesn't work, you can do the reboot to get the new kernel working on the system:

Code:
reboot

At this point, your server will go down for around 5-15 minutes.  If the server is not back after waiting 20 minutes, you should go into http://dedicated@lunarpages.com/ to let an admin know so we can check for you or send a ticket to dedicated@lunarpages.com

It is best to choose to do this upgrade during times when we have the most admins available to assist you such as from 6am - 8pm Pacific time in the U.S. from Monday to Friday.  Picking other times might delay getting assistance if the server does not come back from reboot.

Please post here if you have any questions or concerns.

Thanks.
« Last Edit: June 22, 2007, 09:36:48 AM by Mitch » Logged

Danielle Wallace
- nihil sunt omnia -
Lunarpages Webhosting ~ Lunarpages Forums ~ Lunarpages Affiliates
Administrator Training Manager - System Administrator Team


Ruby Asylum - For those crazy about Ruby
A&E Writing Forum ~ Best Garden ~ Endar & Endar Gallery ~ RatingBar.com

Every living creature on this earth dies alone.
garg
Newbie
*
Offline Offline

Posts: 5


« Reply #1 on: September 13, 2006, 12:25:52 AM »

Seems to me that this procedure will just apply patch to any component of your system but not upgrade PHP.
Logged
Danielle
Resident Alien
Administrator
Berserker Poster
*****
Offline Offline

Posts: 8835


nihil sunt omnia


WWW
« Reply #2 on: September 13, 2006, 03:39:09 AM »

Hi garg,

If you are not cPanel, yum update should upgrade PHP and all other components.  If you are on a cPanel server, you would not use this method to upgrade PHP.  It also upgrades Apache, the kernel and so on.  It's for Webmin servers, though.

Have a Blessed Day
Logged

Danielle Wallace
- nihil sunt omnia -
Lunarpages Webhosting ~ Lunarpages Forums ~ Lunarpages Affiliates
Administrator Training Manager - System Administrator Team


Ruby Asylum - For those crazy about Ruby
A&E Writing Forum ~ Best Garden ~ Endar & Endar Gallery ~ RatingBar.com

Every living creature on this earth dies alone.
Nibbler
21st century digital boy
Master Jedi
*****
Offline Offline

Posts: 1184



WWW
« Reply #3 on: September 13, 2006, 07:44:24 AM »

If you only want to update php and apache then you can specify that when you run yum.

Code:
yum update php httpd
Logged

Missing since 1983

ThainS
The Four-Pointed Star
SysAdmin
Trekkie
*****
Offline Offline

Posts: 13



« Reply #4 on: September 13, 2006, 08:51:53 AM »

Very true, you can specify just httpd and php to be upgraded with yum, however there is also a kernel upgrade that has been released, so you might want to update that too.

Code:
yum update httpd php kernel*

Really if possible, its a good idea to do a system wide update just to make sure everything is the most current secure version. It avoids potential issues in the future.
« Last Edit: September 13, 2006, 08:53:36 AM by ThainS » Logged
aldoy
Trekkie
**
Offline Offline

Posts: 12


« Reply #5 on: December 28, 2006, 10:59:38 AM »

I did preform the upgrade, but it went up to PHP 4.3.9, how do I make it 4.4.4?
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #6 on: December 28, 2006, 10:19:19 PM »

Hello aldoy,

"yum update" is supposed for security updates rather than for version upgrades. I'm not sure whether it is possible to install PHP 4.4.4 using it, but you can install PHP 5 from the CentOS Plus Repository. Uncomment the repository entries in the /etc/yum.conf and run "yum update php" then to accomplish that.

I hope this helps.
Logged

Kind Regards,
Vlad Artamonov
aldoy
Trekkie
**
Offline Offline

Posts: 12


« Reply #7 on: January 07, 2007, 07:32:30 AM »

But the notification email from LP mentioned that PHP should be upgraded to 4.4.4, so is it recomemended to go for PHP5 anyways?
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #8 on: January 09, 2007, 10:40:49 PM »

Hi,

The upgrade to 4.4.4 is recommended for cPanel servers. If you are happy with version 4.3.9 and run "yum update" to install the latest security patches for PHP, there is no need to move to PHP 5.

I hope this is helpful.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM