Pointing apache server to the correct version of php

Spacemail by SpaceshipSpacemail by Spaceship
Watch

shakim

Established Member
Impact
0
I just set up a SUSE linux server. I know that it comes with a pre installed php 4.2.2 (mod). Now, I installed the latest version of php 4.3.3 by compiling it with oracle support. How come when I do a phpinfo function it shows the details for the php 4.2.2? How do I uninstall the 4.2.2 and have apache point to 4.3.3?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
Did you also compile PHP with apache: --with-apxs=/usr/sbin/apxs or by using another option?
 
0
•••
My apache was installed when i installed Oracle. AS for the PHP, I installed it using the option for Oracle.
 
0
•••
You also have to add an option in your configure command to compile PHP as an apache module unless you plan on running it as a cgi binary.

Example:

./configure --with-apxs=/usr/sbin/apxs --with-oci8=/opt/oracle/product/8.1.

How did you install PHP? Did you compile it from source or install the rpm or?
 
0
•••
I compiled it from the source.
 
0
•••
Yes you'll still need to add on an option like I mentioned above when you configure PHP to get it working as an apache module which is what you probably want. This doesn't install apache or do anything to your currnet installation. After that you may need to replace your current php.ini and a couple more files with the new ones to get apache to point to the correct version of PHP. You don't need to uninstall your current PHP before upgrading, you can just install right over the top of it. If you want to uninstall PHP, removing all the files manually is about your best option, unless you have an rpm version.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back