Trying to deploy a Kohana based project in CentOS 5. Installed PHP 5.3.1 but still getting the following error.
Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /usr/local/apache2/htdocs/icarus/system/core/utf8.php on line 30
Fatal error: PCRE has not been compiled with UTF-8 support. See PCRE Pattern Modifiers for more information. This application cannot be run without UTF-8 support. in /usr/local/apache2/htdocs/icarus/system/core/utf8.php on line 38
Trying since last 2 days, i upgraded my PHP from 5.1 to 5.3 but still getting the same error.The problem as per me is that the PCRE module of PHP in phpinfo() says is of sep 2004. Below is the actual line
PCRE Library Version 5.0 13-Sep-2004
Can anyone tell me how to upgrade it or wats the solution to the problem.
Thanks.
I recompiled PCRE for my system to include PCRE UTF-8
We use PHP 5.2.6 atm, however whats causing Kohana to fail is the pcre rpm.
http://digirev.us/files/RPMS/pcre/
Maybe those files will help.
Another option - other then upgrading the PHP version on your CentOS 5 install (which is painful as you've seen), is to use my build of Kohana for CentOS 5 (regardless of what the text says - the repository is kept up to date with the current version being the current Kohana stable 3.0.8 version).
The Kohana software stack is patched in this distribution to work out-of-the-box on vanilla CentOS 5 with PHP 5.1.6. There is almost no loss of functionality (the main issue is error reporting that PHP 5.1 is not that good with) and its tested extensively as it is used by several different people in running different applications.
No way to solve this with original Centos 5 packages.
It's not a problem, it's a feature.
You need to re-compile and upgrade packages, or use another repository, like remi or EPEL.
Try to use EPEL only at first, it comes with php 5.3 as php-53*: yum remove php;yum install php53
Then ADD REMI repo, it comes with php 5.4 as php-*: yum remove php53;yum install php