Having apache recognize new php install

I am working on an Red Hat Enterprise Linux 5.x (but I do not have a license with Red Hat, so I cannot use 'yum'). I installed a new version of php on the server, but apache is still using the old version (without the features enabled that I need). How do I get apache to recognize the new php build? Do I rebuild apache? If so, how do i rebuild apache non-destructively in order to retain all of my current servers settings and files?
mcorsi62Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason MintonEpic ODBACommented:
Did you try simply restarting apache yet?
0
hernst42Commented:
Did you compile php with --with-apxs2=/usr/local/apache2/bin/apxs

You can also try Zend Core as complete uptodate php-distribution with latest php and apache http://www.zend.com/products/core/
0
mcorsi62Author Commented:
red hat enterprise linux 5.x does not have the file /usr/local/apache2/bin/apxs . It does not have any file anywhere named apxs. I am running apache 2.2.3 . How do I reinstall php (from source file NOT rpm or yum) and link it into apache?
0
hernst42Commented:
You can only recompile php fpr apache if you have apxs[2] available. install the -devel package of the webserver or better remove apache from RHE and install Zend Corewith it's apache
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arulkumarabiCommented:
By installing  the httpd-devel rpm apxs will be available.

To install the php new version
1 . download the php source from the php.net site.
2. install all the development tools like gcc, automake etc
3. untar the php source .
4. get in to the PHP source folder (by cd php<ver>)
5. type command ./configure , make, make install
6. it will install every properly.
7. enjoy new php version.

Note if got any compilation error post here for the solution or just search on google. it may be like development rpm are missing.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.