Solved

Trying to update pcre on CentOS 5.10 with Cpanel

Posted on 2013-12-06
3
917 Views
Last Modified: 2013-12-09
I am trying to update the pcre install on CentOS 5.10 and am running into some issues I do not know how to address.

First things first, I am NOT a Linux guy so things that may seem obvious to you are unknown to me, keep that in mind.

I have successfully updated Apache from 2.0.x to 2.2.26. I have successfully updated PHP from 5.3.x to 5.4.22.

Running "pcretest -C" from the shell results in version 8.33. Running "php -i | grep -i pcre" shows PCRE Library Version 8.21. The 8.21 version is installed in /opt/pcre. The php config screen shows '--with-pcre-regex=/opt/pcre' so I see where it is getting the 8.21 version but I have absolutely no idea where the 8.33 version is or how to point the php configuration to it.

Any help appreciated.
0
Comment
Question by:AMPLECOMPUTERS
[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
3 Comments
 
LVL 19

Accepted Solution

by:
xterm earned 500 total points
ID: 39702579
If you upgraded Apache/PHP via the cPanel web interface, then it's still going to be hardcoded to look in /opt/pcre

What I would suggest is to rename /opt/pcre to /opt/pcre.old, grab the source code of the pcre version that you want, and then compile it using that path, so:

<download pcre-xxx.tar.gz to temporary folder>
tar xzf pcre-xxx.tar.gz
cd pcre-xxx
./configure –prefix=/opt/pcre –enable-utf8 –enable-unicode-properties
make
make install

Then after you restart Apache, it should pick up the new version.  If you have any mishaps, you can just remove /opt/pcre and put the backup version back.
0
 
LVL 62

Expert Comment

by:gheist
ID: 39704916
Latest versions are
apache 2.2.3
php 5.1.6 threadsafe
php 5.3.3

What you do past that sooner or later breaks your system.  can only suggest that you keep using packages that are shipped by system vendor.

It is essential that you tell the steps you took, because e.g rpmbuilding apache from official tarball will break on pre-archaeologic versions of pcre, apr and openssl..

RHEL/Centos6 ships slightly refreshed packages.
0
 

Author Closing Comment

by:AMPLECOMPUTERS
ID: 39706052
That got me well on my way. Still had a few issues which I fixed by updating Apache and PHP to the latest versions and then compiling in suPHP and switching to CGI from PHP in the PHP config.

Thanks!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to count occurrences of each item in an array.

737 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