NameSilo

Pointing apache server to the correct version of php

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Did you also compile PHP with apache: --with-apxs=/usr/sbin/apxs or by using another option?
 
0
Close
My apache was installed when i installed Oracle. AS for the PHP, I installed it using the option for Oracle.
 
0
Close
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
Close
I compiled it from the source.
 
0
Close
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
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back