473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php upgrade not being applied - please help!

Hi,

this is my first post to this ng, so please be nice to me! :)

ok we're running redhat 7.2 with apache 1.3.26. I had/have php 4.2.1,
i need to use some cms package that needs 4.2.2 or better. so i
thought i'd download the tar'd source for php 4.3.2 to keep him happy.
followed all the instructions to compile and install it, and from the
command prompt a php -v gives me 4.3.2; however phpinfo() from a
webpage still shows the old version. i'm really at a loss for how to
get apache to update itself to see the new version - can anyone tell
me what i'm doing wrong?

many thanks in advance!!

Dan
Jul 16 '05 #1
5 2986
On 10 Jul 2003 08:06:06 -0700, Dan Foster <df@melbourne.uk.net> wrote:

ok we're running redhat 7.2 with apache 1.3.26. I had/have php 4.2.1,
i need to use some cms package that needs 4.2.2 or better. so i
thought i'd download the tar'd source for php 4.3.2 to keep him happy.
followed all the instructions to compile and install it, and from the
command prompt a php -v gives me 4.3.2; however phpinfo() from a
webpage still shows the old version. i'm really at a loss for how to
get apache to update itself to see the new version - can anyone tell
me what i'm doing wrong?


It has been a while since I last did it, but I believe you compile
libphp4.a into apache. This file is created by each version of PHP. So
my guess would be that you need to recompile Apache to use the new PHP
libraries.

Jul 16 '05 #2
Steve Robbins wrote:

[snip]
It has been a while since I last did it, but I believe you compile
libphp4.a into apache. This file is created by each version of PHP. So
my guess would be that you need to recompile Apache to use the new PHP
libraries.


It's a lot more convenient to use a module. Saves you from recompiling
Apache everytime you upgrade PHP.

Regards,
Ruben.

Jul 16 '05 #3
First, make sure you have recompiled Apache (use the same config as you did
before with the --activate-module directive to the configure script).

Second, after Apache has been rebuilt, you will need to do a full shutdown
and restart. The "apachectl restart" will not always work. You have use
"apachectl stop" then "apachectl start" to get it to recheck the image on
the disk instead of just suspending the executable's image in memory and
restarting the main process.

I ran into this problem the first time I upgraded PHP as well.

HTH,
Zac
"Dan Foster" <df@melbourne.uk.net> wrote in message
news:15**************************@posting.google.c om...
Hi,

this is my first post to this ng, so please be nice to me! :)

ok we're running redhat 7.2 with apache 1.3.26. I had/have php 4.2.1,
i need to use some cms package that needs 4.2.2 or better. so i
thought i'd download the tar'd source for php 4.3.2 to keep him happy.
followed all the instructions to compile and install it, and from the
command prompt a php -v gives me 4.3.2; however phpinfo() from a
webpage still shows the old version. i'm really at a loss for how to
get apache to update itself to see the new version - can anyone tell
me what i'm doing wrong?

many thanks in advance!!

Dan

Jul 16 '05 #4
thanks all for your replies - i appreciate your help!!

i'd actually tried recompiling apache at the same time (infact i
downloaded 1.3.27 (was at 1.3.26) and did the install on this at the
same time.... but even this isnt being picked up.

i do know that the version of redhat on the server is a custom build
by the company that we rent the server from (im not quite sure what
wisdom lead to them doing this - perhaps its because they charge $150
an hour to do this for us?)

i'm really stuck - as none of the updates are being applied. is it
trying to install apache to the wrong dir? where should it be doing
it to? sorry to ask so many questions, but i find some of the
documentation somewhat confusing when you dont have a straightforward
setup!

many thanks

Dan Foster
Jul 16 '05 #5
tryed 'service httpd restart' while logged as root?

If it still does not work, try 'updatedb && locate php' If you notice
PHP installed at two different locations, it's probably because you had
the version installed by RedHat and the one you compiled and during the
install, Apache pointed to the wrong version of PHP. You will have to go
play in the configuration file to point to the right version of PHP
(during one of those LoadModule)

Dan Foster wrote:
thanks all for your replies - i appreciate your help!!

i'd actually tried recompiling apache at the same time (infact i
downloaded 1.3.27 (was at 1.3.26) and did the install on this at the
same time.... but even this isnt being picked up.

i do know that the version of redhat on the server is a custom build
by the company that we rent the server from (im not quite sure what
wisdom lead to them doing this - perhaps its because they charge $150
an hour to do this for us?)

i'm really stuck - as none of the updates are being applied. is it
trying to install apache to the wrong dir? where should it be doing
it to? sorry to ask so many questions, but i find some of the
documentation somewhat confusing when you dont have a straightforward
setup!

many thanks

Dan Foster


Jul 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2233
by: Alan Silver | last post by:
Hello, Hope this is not OT, but I'm not sure where to post it. I have a development box running Windows NT Server 4 SP6a with all the latest hot fixes and patches. Up until a couple of days...
2
1312
by: timp | last post by:
HI We are currently considering to upgrade to .net 2.0 but we are in the middle of a release face, and I need to here you experience wither other n- tier solutions based on ASP.Net and some...
47
4482
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
1
2060
by: Donalbane | last post by:
Hello, does anyone know how to go about getting this upgrade? There is a phone number on the box of the 5.0 software to you used to be able to call, but the number is no longer in service. ...
6
2065
by: Joseph Geretz | last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is that my sample WebService pages no longer worked. The Invoke test button is missing. This is addresed by the following KB...
11
4191
by: pshindle | last post by:
We have several machines currently running the DB2 V7 Run-time Client that we would like to actually be running the App Dev Client. To 'upgrade' (within the same version) this client software can...
2
3423
by: gvozdano | last post by:
I have phpBB forum on my site and I have a problem. I have some mods applied on it (not done with EasyMOD), but can't remember exactly which are they. How can I upgrade that forum and still keep...
1
1701
by: =?Utf-8?B?aHVyY29tYmU2?= | last post by:
i have just upgraded to vista from xp, what i wanted to know was how to do system recovery if i have any problems in the future,i had recovery discs for xp,but all i have got for vista is the acer...
3
6793
by: Bob Altman | last post by:
Hi all, In my VB 2005 project I create a setting called UpgradeRequired with a default value of True, and I include the following code that runs when the project is launched: If...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.