?
Solved

Upgrading PHP on Redhat Linux

Posted on 2010-09-14
5
Medium Priority
?
421 Views
Last Modified: 2013-12-13
Trying to upgrade PHP to 5.3.2.  (5.2.0) or greater is needed to run Roundcube webmail.   Not having any luck.  I've follow the directions

Tar
./configure
make
make test
make install
Tried to edit httpd.conf file but there is no Addmodule section.

Is there an easier way to do this?  Like maybe an RPM or something.

UGGGG
0
Comment
Question by:marchopkins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 6

Accepted Solution

by:
collins23 earned 2000 total points
ID: 33672155
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 33672190
after install php from source you will have to make sure that in httpd.conf file , bellow line is present

LoadModule php5_module        modules/libphp5.so

if not then you can always add that line

you can find it :
locate libphp5.so

see where is the location

also when you configure php you had to give it a path where is your apache,

-with-apxs2=/usr/local/apache/bin/apxs   ( here i assuem, you installed apache in /usr/local/apache/bin/.. )

just typing .configure will not work always if you installed Apache by your self

0
 
LVL 7

Expert Comment

by:darrickhartman
ID: 33682988
There is a 3rd party repository which has the latest version of php:

http://www.atomicorp.com/channels/plesk/

You may want to restrict the repo to only php related modules.  If you just enable the entire repo, you may get additional upgrades that you don't want.  I've used php from that repository for several years.  Much easier than manually compiling php and all of the dependencies.
0
 
LVL 25

Expert Comment

by:madunix
ID: 33965070
Please note, Red Hat will not support any third party packages or if you compile from source code. Hence you will not get support for any of your third party or custom compiled packages.

php-5.1.6 is the latest PHP version available in RHEL 5 as of now. RHEL 5.6 will be released with PHP version 5.3.
0
 
LVL 1

Expert Comment

by:jmargraf
ID: 35209452
At times, I've had to manually copy newly compiled php (libphp5.so) into the apache modules directory (a common location for this would be /usr/lib/httpd/modules).  You may want to check the apache modules directory and see if the newly compiled php library was copied there.  If not, there will be a copy in you php source directory.
0

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question