LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-30-2006, 08:29 AM   #1
sergiodlc
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Exclamation PHP upgrade from v. 4.0.4 to v. 5


Hi:

I have Suse 9.1 with Apache 1.3.14, MySQL 3.23 and PHP 4.0.4. I need to upgrade to PHP 5. I don't want any trouble because my server is hosting an important website. So I need extensive help on safely upgrading PHP.

Thanks,

Sergio
 
Old 01-30-2006, 11:24 AM   #2
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
This is just my two cents, but I would recommend a newer suse for you.

Im quite sure php5 will work correctly if you get it installed. There may be problems finding rpms, yes you can compile, but after that im quite sure, configs are in different places than in number4.

If you really really want to update, you should uninstall the old php4 packages. After that install php, apache-php5, php-mysql, ...

Suse 9.1 is using also an "old" apache 1.3. Im quite sure it will work just fine, but a safer choice would be newer Suse with apache2 (httpd). I would also update MySQL to atleast version4.

SUSE10 for example offers you apache 2.0.54 and php5 packages on the DVD.
 
Old 01-30-2006, 01:40 PM   #3
sergiodlc
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot. I will take your advice in the next few days.
I have currently download php 4.3.8 and installed it. I have restarted the apache server but when running phpinfo it reports I'm still using the old php version. What shall I do?

Sergio
 
Old 01-31-2006, 03:22 AM   #4
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
Hmm. These little problems are just the ones that will pop-up if you don't remove the old version before the process.

Use command "rpm -qa | grep php" and check if it lists two versions of php or some updated and some old. Look carefully for apache2-mod_php4 and php4 (the base package) .

I myself have sticked with the php4, because I haven't found any new features I need in the php5. OK, it has got a way much better handling of object-oriented programming, but still I don't really need them yet.

I still recommend you to make a new server with suse10 or wait till March to get the new suse 10.1.
Installing lamp is basically the same procedure than in suse 9.1.

Install Apache and apache-prefork, edit runlevels for apache, enable server support in firewall.
Install php and apache-mod-php.
Install MySql and other dependencies , edit runlevels, make MySql default databases.
Restart computer
TEST!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Upgrade z_darius Mandriva 3 03-29-2005 07:10 AM
Upgrade PHP objorkum Slackware 5 03-25-2005 01:14 PM
upgrade php from 4.3.2 to 5 pelegk2 Linux - Software 1 10-10-2004 09:37 AM
PHP upgrade Damiand Linux - Newbie 0 06-07-2004 06:31 PM
Upgrade php 4.2.x to 4.3.x buzzbuzz Linux - Newbie 0 10-30-2003 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration