I'm not sure if this is the right place for this, apologies if it's not.
We've decided to start moving over to php5 however one of our hosting companies is being a swine and saying it's our responsibility to do the upgrade. This has been tasked to me and having never upgraded anything on a linux box without the help of Yum I'm a little scared! Apparently yumming php5 is a bad idea, is this true?
I recently upgraded my home Windows development machine to php5 and remember having some issues with mySQL which I had to upgrade, something to do with libraries not being bundled with php anymore or something. I don't particularly want to headache of having to upgrade mySQL as well as PHP. Can anyone tell me if I'll have to? Or am I not giving enough information to let you know? The mySQL server is version 4.1.20 if that helps!
Also can anyone point me to an up to date tute on doing the install? I've found one but it's nearly 2 years old. The OS is Cent OS v 4.4
Your help is much appreciated!
Go PHP5
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
What? The MySQL extension is included in PHP 5. If you're going to upgrade PHP, you may as well upgrade MySQL to version 5 also. If you want the least amount of interruption, do it late at night, but the installation process is (seems to be) simplified with each upgrade.Jello wrote:it's Apache 2 alright. The problem isn't so much setting up as upgrading with minimum interruption to our clients websites.
It's really the issue of mySQL libraries not being bundled that's giving me the willies...
Overwrite PHP 4 with PHP 5, change the PHP 4 module loaded in Apache to the PHP 5 module (and set the php.ini directory), and ensure PHP is loading MySQL correctly. If you're unsure, make a practice server and try it out.
I direct you here:
http://ie2.php.net/mysql
and I quote:
oh man I'm in way over my head here!
http://ie2.php.net/mysql
and I quote:
Am I just misunderstanding this? As far as I understand it I have to have external mySQL libraries available for php? Or is that only if I'm compiling it myself instead of using an RPM?MySQL is not enabled by default, nor is the MySQL library bundled with PHP.
oh man I'm in way over my head here!
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm