Habari and PHP PCRE extension Unicode support

9 views
Skip to first unread message

davidyeiser

unread,
Dec 11, 2009, 12:23:16 PM12/11/09
to habari-users
I'm trying to install Habari 0.6.3 on a MediaTemple (dv) server. When
I do so I get the following error:

"Habari requires PHP's PCRE extension to have Unicode support enabled.
Please contact your web hosting provider if you do not have access to
your server."

The URL is http://v4.designintellection.com/

The MediaTemple support pointed me to this article:
http://gaarai.com/2009/01/31/unicode-support-on-centos-52-with-php-and-pcre/

Are there any quick fixes for this? Or am I going to have to dig in
deep?

Thanks in advance for any help!

rick c

unread,
Dec 11, 2009, 10:50:17 PM12/11/09
to habari-users
According to the post you linked, that version of the pcre is almost 4
years old. The best thing, for all their customers, would be to get MT
to update their servers to something a little more reasonable. Second
best, try looking at this message regarding patching habari:

http://groups.google.com/group/habari-dev/browse_thread/thread/8bc00473ccf44dea/31725defd8072321?lnk=gst&q=pcre#31725defd8072321

The user in that message says the patches habari needs to work have
changed since then, but he didn't say how much.

Rick

On Dec 11, 12:23 pm, davidyeiser <da...@davidyeiser.com> wrote:
> I'm trying to install Habari 0.6.3 on a MediaTemple (dv) server. When
> I do so I get the following error:
>
> "Habari requires PHP's PCRE extension to have Unicode support enabled.
> Please contact your web hosting provider if you do not have access to
> your server."
>
> The URL ishttp://v4.designintellection.com/
>
> The MediaTemple support pointed me to this article:http://gaarai.com/2009/01/31/unicode-support-on-centos-52-with-php-an...

Michael C. Harris

unread,
Dec 12, 2009, 12:04:22 AM12/12/09
to habari...@googlegroups.com
There is a page for media temple installation on the wiki, but nothing
seems relevant (yet, hint, hint :)

http://wiki.habariproject.org/en/Installation_on_Media_Temple

--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

mikelietz

unread,
Dec 12, 2009, 12:18:35 AM12/12/09
to habari-users
I've made up a few files that, when unzipped, should end up in /user/
classes and override the five files that rely on Unicode for PCRE.

http://dropoid.com/7a

These files should work with 0.6.3, though I am having other trouble
(not PCRE-related) with my host to fully test the install.

mikelietz

On Dec 11, 10:50 pm, rick c <rickcock...@gmail.com> wrote:
> According to the post you linked, that version of the pcre is almost 4
> years old. The best thing, for all their customers, would be to get MT
> to update their servers to something a little more reasonable.  Second
> best, try looking at this message regarding patching habari:
>
> http://groups.google.com/group/habari-dev/browse_thread/thread/8bc004...

davidyeiser

unread,
Dec 12, 2009, 10:42:37 AM12/12/09
to habari-users
Thanks for everyone's help. I'll post back on here (and the Media
Temple installation page) when I get it fixed.

Ryan Mullins

unread,
Dec 13, 2009, 4:30:16 PM12/13/09
to habari...@googlegroups.com
Interesting. On the Grid Service (GS) I just did a stock 0.6.3 install at MT and it runs with no issues. Which service are you on? DV?


On Dec 12, 2009, at 9:42 AM, davidyeiser wrote:

> Thanks for everyone's help. I'll post back on here (and the Media
> Temple installation page) when I get it fixed.
>
> --
> To post to this group, send email to habari...@googlegroups.com
> To unsubscribe from this group, send email to habari-users...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/habari-users

Ryan Mullins

unread,
Dec 13, 2009, 8:28:51 PM12/13/09
to habari...@googlegroups.com
NM.  Went back online and found the thread.  My fingers typed something other than what my brain was thinking.  I had meant to ask which version of DV you were running, not if you were on it or not...  Instead of going the long route of rebuilding a package for PHP, you can install YUM on MT's DV servers.  From there, you should be able to upgrade/install anything that you need.  Might be a little easier this way than recreating a package just to install..

http://kb.mediatemple.net/questions/1564/Installing+the+YUM+package+manager+on+a+%28dv%29+Dedicated-Virtual+3.5+Server

On Dec 12, 2009, at 9:42 AM, davidyeiser wrote:

Thanks for everyone's help. I'll post back on here (and the Media
Temple installation page) when I get it fixed.

davidyeiser

unread,
Dec 15, 2009, 12:33:53 PM12/15/09
to habari-users
Okay, I got it working. What I did is outlined below, whether or not
this is the best route I can't say for sure. But it does fix the
problem.

This is to enable PCRE Unicode support on MediaTemple's (dv) servers,
which will then allow you to install Habari.

STEP 1
Go to this article and complete the first three steps:
http://kb.mediatemple.net/questions/1564/Installing+the+YUM+package+manager+on+a+%28dv%29+Dedicated-Virtual+3.5+Server

A few things to note:
- You need to have the Developer Tools package installed and you need
to have your root user enabled. The article states this at the
beginning, but just in case.
- I didn't add the Plesk repository provided by Atomic Turtle. I'm not
going to lie, I don't even know what that means. I'm familiar with
Plesk, Atomic Turtle I am not.
- I tried to yum install the package name but I didn't really know the
accurate package name and Google led me to other things so I gave up
on this portion of the article.

STEP 2
After YUM is installed you'll want to visit Step 10 on this article:
http://devblog.jasonhuck.com/2009/01/08/installing-lasso-on-centos-5/

You'll follow Step 10 in the article line-by-line with the exception
of the following:

1. The directory /usr/src/redhat already exists. So ignore the first
command ([prompt]# mkdir /usr/src/redhat)

2. Instead of the command on line 3:
[prompt]# wget http://mirrors.kernel.org/centos/5.2/os/SRPMS/pcre-6.6-2.el5_1.7.src.rpm

Type this:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/pcre-6.6-2.el5_1.7.src.rpm

The original URL is now 404. The new URL I found from this article:
http://freshmeat.net/articles/red-hat-updated-pcre-packages-resolve-several-security-issues

** One thing to note, and this is for designers like me, when you're
in the VIM editor and you hit the "i" key, it will place the cursor at
the top of the file which may or may not be outside of your current
viewing area. Just scroll up a bit in the Terminal if that's the case.
Also, if you need to reference VIM commands here's one I use:
http://www.tuxfiles.org/linuxhelp/vimcheat.html **

3. In the last set of commands, ignore this one: [prompt]# mv /usr/
local/lib/libpcre*.* /usr/local/lib/pcre-old

It didn't do anything for me. So I ignored it and everything still
seemed to work fine.

STEP 3
Now everything should be good. I restarted my server via MediaTemple's
web interface. You should probably do that too.

After this process everything has been working smoothly. And it seems
as though I didn't permanently damage anything, which is always a
concern when I launch Terminal.

rick c

unread,
Dec 15, 2009, 3:07:37 PM12/15/09
to habari-users


On Dec 15, 12:33 pm, davidyeiser <da...@davidyeiser.com> wrote:
> Okay, I got it working. What I did is outlined below, whether or not
> this is the best route I can't say for sure. But it does fix the
> problem.
<snip>
> After this process everything has been working smoothly. And it seems
> as though I didn't permanently damage anything, which is always a
> concern when I launch Terminal.

I'm glad you got everything updated and working properly. Many thanks
for adding the process to the wiki.

Rick
Reply all
Reply to author
Forward
0 new messages