Go PHP5

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Jello
Forum Newbie
Posts: 16
Joined: Mon Jul 16, 2007 1:53 pm

Go PHP5

Post by Jello »

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!
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

There's a ton of LAMP tutorials online. What server are you using? PHP 5 is fairly easy to install on Apache 2.
Jello
Forum Newbie
Posts: 16
Joined: Mon Jul 16, 2007 1:53 pm

Post by Jello »

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...
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

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...
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.

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.
Jello
Forum Newbie
Posts: 16
Joined: Mon Jul 16, 2007 1:53 pm

Post by Jello »

I direct you here:

http://ie2.php.net/mysql

and I quote:
MySQL is not enabled by default, nor is the MySQL library bundled with PHP.
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?

oh man I'm in way over my head here! :oops:
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Yes, MySQL is separate from PHP, but the extension is included and only needs to be uncommented in php.ini. I'm sure you've already got MySQL installed.
Post Reply