Help! Updating PHP

Greebo

N9017H - C172M (1976)
Joined
Feb 11, 2005
Messages
10,976
Location
Baltimore, MD
Display Name

Display name:
Retired Evil Overlord
We currently have php 4.3.11 installed.
The latest version of vBulletin needs 4.3.3 or better.

I've configured and made 4.4.4, and rebooted, but when I type php -v, I still get 4.3.11.

Now I know that 4.3.11 is > 4.3.3 but I'm still thinking an update is a good idea, so...

How do I make 4.4.4 the standard? And will I need to rebuild apache as well?
 
Last edited:
Greebo said:
We currently have php 4.3.11 installed.
The latest version of vBulletin needs 4.3.3 or better.

I've configured and made 4.4.4, and rebooted, but when I type php -v, I still get 4.3.11.

Now I know that 4.3.11 is > 4.3.3 but I'm still thinking an update is a good idea, so...

How do I make 4.4.4 the standard? And will I need to rebuild apache as well?

I can't help you, but why is 4.3.11 > 4.3.3?

edit: holy crap its early. Nevermind.
 
Nick I had the same exact problem today. For a while I was thinking that .11 < .3 too.

I need more coffee...
 
Tester said:
Nick I had the same exact problem today. For a while I was thinking that .11 < .3 too.

I need more coffee...
QUIET! You weren't supposed to tell them that.

(YEah, posted under my test account - REALLY need more coffee...)
 
Are you sure PHP was built/installed from source? You're running Red Hat aren't you? It may have been installed from RPM.

If you're not sure if you have installed by RPM you can find out by typing "rpm -qa |grep php". If you do have the RPMs installed, and you're trying to install by source, that may be one of your issues.

The RPM and the source installs put the binaries in two different locations. (/usr/local/bin/php for source and /usr/bin for the RPM). So, if you had the RPM installed and you ALSO installed from source, then typing 'php -v' into your shell may be picking up the wrong binary in your PATH even though you did get the new one installed.

On to the next step. Installing from source...

The easiest thing to do would be to take your current compile settings and reuse them with the new install. To find out everything you could want to know about the version of PHP currently being used by Apache, just put a file called "info.php" into your web directory and put this in it.
Code:
<? phpinfo(); ?>
and then browse to that page. Two of the things you'll learn by doing this are the version being used by Apache and the configure string used when compiling. Use that string to rebuild the source and it should take effect without doing anything to Apache. Well, you MAY need to stop/start Apache to get it to take, but most of the time that isn't even necessary.

Please keep in mind that it IS possible to have two versions of PHP installed depending on your configure string. This being a different way to have two versions installed than I eluded to above. One version would be the DSO module that is being used by Apache (if you used with --with-apxs in your configure string) and the other being the binary version being used by your shell when you type 'php' on the command line.

This should get you started. I can help as much as you need me to, right up to setting up a remote session and walking through it with you. Let me know if you need anything else...
 
If you had a Mac server you wouldn't have to put up with this kind of crap. :D
 
Jason (both of you ;)

Yes, I installed from source. I had the great idea back when I was setting up this server to kill off plesk and do source based installs for everything. (Yes, I knew just enough to be really dangerous...)

Since then I've determined that the main advantage to this configuration is that NOTHING is in a standard location...

Thanks for the advice, FlyNE - I'll look into it when I need to. Since 4.3.11 is working with vB3.6.4, I'm not gonna push this just yet.
 
I'm certain that all PoA are happy, and appreciative, that you(and other techies) do such a great job maintaining this system. I'm sure that I'm not the only SOB(aviation term) who likes to know that when the button is pushed the invoke occurs.

HR
 
Back
Top