PCRE error

cmavroudis

New member
Joined
Jun 21, 2011
Messages
1
Hi,

I am a relative newcomer to Direct Admin and a bit of a newbie so please bear with me. I have a fresh VPS setup (CentOS) and Php 5.2.17 and am trying to install Magento however on install im getting the following error:

Code:
Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0  in /home/admin/domains/kukistudio.com/public_html/app/code/core/Mage/Admin/Model/User.php on line 401

From what I have gathered, my PCRE compiled without UTF-8 support.

Can anybody please assist me with how I reoslve this via the Directadmin interface.

Let me know if i need to provide additional information.

Im using DirectAdmin 1.38.4

Mu appreciated
Costas
 
Do you have pcre installed?

Code:
rpm -aq | grep -i pcre

If not do:

Code:
yum -y install pcre pcre-devel

Then:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean

If you have suphp do:
Code:
mkdir -p custom/suphp
cp -rfp configure/suphp/configure.php5 custom/suphp/configure.php5
perl -pi -e 's/\"--with-gd\" \\/\"--with-gd\" \\\n\"--with-pcre\" \\/' custom/suphp/configure.php5

If you do not have suphp do:
Code:
mkdir -p custom/ap2
cp -rfp configure/ap2/configure.php5 custom/ap2/configure.php5
perl -pi -e 's/--with-gd \\/--with-gd \\\n\t--with-pcre \\/' custom/ap2/configure.php5

Build php:
Code:
./build php n
 
Last edited:
Back
Top