Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.