Solved

Upgrading PHP on Redhat Linux

Posted on 2010-09-14
5
404 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
Comment Utility
0
 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now