Solved

Upgrading PHP on Redhat Linux

Posted on 2010-09-14
5
416 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

717 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