1
Peekay
Upgrade PHP on live server via Shell access. Any guides anywhere?
  • 2006/12/15 13:45

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I have noticed a couple of new modules which are designed to work with PHP 5 only. Since switching to our own VPS, PHP is now my responsibility. I have some experience with shell commands, but the prospect of upgrading PHP without losing websites, data, email services is, well.. daunting to put it lightly.

Does anyone know of any tutorials like A step-by-step guide to upgrading PHP on your live web server via Shell access without losing your business overnight
A thread is for life. Not just for Christmas.

2
blueteen
Re: Upgrade PHP on live server via Shell access. Any guides anywhere?
  • 2006/12/15 14:15

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


which OS are you using ?
suse, debian, centos... ? (rpm, yum, apt-get)

maybe, install php4 and php5 is a good thing to prevent loss of data ?
here you'll find how install php4 and php5 at same time on same server. (debian / ubuntu)

http://hurring.com/howto/php4_and_php5/

update php4 to php5 in debian
http://www.debianhelp.co.uk/php5.htm

it's not easy to find a step by step tutorial because, there are lot of parameters for each server in the world.

hope than someone will help you better !
good luck !

3
Dave_L
Re: Upgrade PHP on live server via Shell access. Any guides anywhere?
  • 2006/12/15 15:11

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If possible, it's nice to have a duplicate server, with the same hardware, that you can use for testing upgrades such as this. Then you can take your time and make sure everything works before upgrading the production server.

4
Peekay
Re: Upgrade PHP on live server via Shell access. Any guides anywhere?
  • 2006/12/15 15:33

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Thx for those links blueteen. I'm sorry, I should of course have mentioned that the VPS runs Redhat Fedora core Linux.

@Dave_L
I have been learning a little about Linux using an old laptop on which I installed Ubuntu (Hoary Hedghog). Do you think that would be sufficient for me to test a remote PHP upgrade on, or are the two Linux varients very different?
A thread is for life. Not just for Christmas.

5
Dave_L
Re: Upgrade PHP on live server via Shell access. Any guides anywhere?
  • 2006/12/15 16:09

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Fedora and Ubuntu are very different, so I'm not sure how much help it would be to do the upgrade on the laptop.

But at least you could test your PHP scripts to see if they work ok under PHP 5. I do most of my development on MEPIS / PHP 5 for a production server running Fedora 5 / PHP 5, and rarely have PHP-specific issues. (MEPIS is another Debian-based distro like Ubuntu.)

Login

Who's Online

410 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 410


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits