Solved

Upgrading PHP on Redhat Linux

Posted on 2010-09-14
5
406 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
5 Comments
 
LVL 6

Accepted Solution

by:
collins23 earned 500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

770 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