Status
Not open for further replies.

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
Hi!

While phpinfo called from any domain shows version 4.0.4, the same file called from within the CPanel shows version 4.1.1.

It looks like I have 2 versions installed. How do I tell apache to use the newer one?

I have found two instances of mod_php4.c:

./usr/local/src/kit/apache_1.3.19/src/modules/php4/mod_php4.c
./usr/local/src/kit/php-4.0.5/sapi/apache/mod_php4.c

Any idea how to switch over to 4.1.1 ?

Thanks in advance,

kosmo
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
Backup httpd.conf & domlogs (and certificates, if applicable), from /usr/local/apache

Remove /usr/local/apache
;)

No, seriously.
Then...... install the latest fp-upgrade from cpanel.net
that is quickest and most painless.
Be sure you stay suexec OFF if it was that way beforehand, and vice versa.


Are there easier ways? Of course.
But this way you are taking out the previous install and all libraries so any insane weirdness caused by the primary RH install is mostly wax'd and out of your hair.
:p
 
B

bdraco

Guest
[quote:010101c27c][i:010101c27c]Originally posted by feanor[/i:010101c27c]


Backup httpd.conf & domlogs (and certificates, if applicable), from /usr/local/apache

Remove /usr/local/apache
;)

No, seriously.
Then...... install the latest fp-upgrade from cpanel.net
that is quickest and most painless.
Be sure you stay suexec OFF if it was that way beforehand, and vice versa.


Are there easier ways? Of course.
But this way you are taking out the previous install and all libraries so any insane weirdness caused by the primary RH install is mostly wax'd and out of your hair.
:p [/quote:010101c27c]

Cpanel comes with its own version of php ..

Just grab buildapache.sea from layer1.cpanel.net and run it .. restart apache and you should be set..
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
[quote:0a7a2bad13]Just grab buildapache.sea from layer1.cpanel.net and run it .. restart apache and you should be set..[/quote:0a7a2bad13]

Do I have to know something special or do I just copy it anywhere and enter
./buildapache.sea

?

I don't want to ruin anything, I am away the next 10 days and don't want my clients to kill me ;)
 

joel69

Active Member
Feb 17, 2005
29
0
151
East Vancouver, BC, Canada
Hello. I've been trying to figure this one out too. I have installed Apache / PHP via the WHM's "Apache Update" page. I have found that there are two different copies of the PHP binary:

/usr/bin/php
/usr/local/bin/php

At this point in time I have been able to get them both PHP 5.0.5, but the one that Apache likes (/usr/bin/php) does not support GD and Curl. :confused:
 
Status
Not open for further replies.