LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2007, 10:44 PM   #1
gurl4sh25
Member
 
Registered: Apr 2006
Distribution: SuSE, RedHat, Fedora, CentOS, BSD
Posts: 115

Rep: Reputation: 15
Upgrading Apache, PHP and MySQL


Hi Guys,

Just want to ask regarding upgrading Apache, PHP and MySQL, currently
we have a lot of Linux Servers in our company with running Apache, PHP and MySQL.

My question is, when I use the command

rpm -Uvh <rpm package>

is there a tendency that my current configuration would be replaced or messed up? Or it would be the same configuration and nothing change?

another upon upgrading MySQL, would the Data would be lost upon upgrade?

Regards,
gurl4sh24
 
Old 09-10-2007, 04:33 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i guess it would be quite useful to know what distros are in use and how old the old versions are.Are the old versions running apache2? Mysql4.x or 5.x? PHP4 or 5?
A change from apache1 to 2 could cause problems, a change from mysql4.0 or older to 4.1 or 5 may require changes in applications. Even changes from php4 to 5 may need a few changes in applications, but not so likely...
 
Old 09-10-2007, 08:49 PM   #3
gurl4sh25
Member
 
Registered: Apr 2006
Distribution: SuSE, RedHat, Fedora, CentOS, BSD
Posts: 115

Original Poster
Rep: Reputation: 15
Hi, I'm using Red Hat Enterprise Linux ES 4, and most services to be upgrade are:

MySQL 4.1.9 ---> MySQL 4.1.20-2
Apache 2.0.52 ---> Apache 2.2

When I upgrade to these version, will my config files would be change or will be lost?
 
Old 09-13-2007, 02:31 AM   #4
gurl4sh25
Member
 
Registered: Apr 2006
Distribution: SuSE, RedHat, Fedora, CentOS, BSD
Posts: 115

Original Poster
Rep: Reputation: 15
Guys? Anyone would like to help me here?
 
Old 09-13-2007, 07:36 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
RPM won't overwrite your configuration files. It will create new ones with a *.rpmnew extension. To be on the safe side always back up your configuration files.
 
Old 09-13-2007, 07:44 AM   #6
shinmai
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
what reddazz said. About data being lost when updating MySQL, I've never, ever lost any data due to an update, even with major updates like from mysql 3.x to the 4.x line, sometimes you might have to run some mainteance on your old databases to get them to work with a new major version, but the update certainly shouldn't overwrite any of your data files, ever.
 
Old 09-13-2007, 08:24 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Read the documentation and revision history. As far as I know (example), certain stuff was already deprecated in PHP4 and has been permanently removed from PHP5 (magic_quotes comes to mind if I remember correctly). So if your scripts rely on that, you might have a problem. Similar issues might apply to Apache and MySQL.

The best way is to setup a server and do the exercise there. It gives you the experience and you will quickly find out if stuff works or not so you are prepared. But you have to test every single program/script/etc to make sure that they work with the new software versions.
 
Old 09-14-2007, 05:23 AM   #8
gurl4sh25
Member
 
Registered: Apr 2006
Distribution: SuSE, RedHat, Fedora, CentOS, BSD
Posts: 115

Original Poster
Rep: Reputation: 15
Hey thanks guys, thanks for the information. really help me a lot =)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trouble upgrading Apache, MySQL, PHP on RHEL AS4 abLinux Red Hat 0 06-08-2007 02:00 AM
Upgrading PHP..and maybe MySQL too? Vort3x Mandriva 4 11-23-2004 05:40 PM
Upgrading PHP,.. and maybe MySQL too? Vort3x Linux - Software 1 10-29-2004 11:35 AM
Upgrading Apache MySQL PHP on RH9 TheLimey Linux - Newbie 0 05-22-2004 03:51 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:54 PM.

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