Search Our Database
How to Fix “PCRE is not compiled with PCRE_UTF8 support” Error via SSH- DirectAdmin
Introduction
This guide is for system administrators and developers who encounter the error message “PCRE is not compiled with PCRE_UTF8 support” when using DirectAdmin. This issue typically occurs when attempting to use DirectAdmin with applications that require PCRE (Perl Compatible Regular Expressions) support for UTF-8 encoding. This article will walk you through the steps to resolve the issue by reconfiguring and recompiling PCRE with UTF-8 support.
Prerequisites
Before you begin, ensure you have:
- Root access to your server.
- A basic understanding of compiling software in Linux.
- DirectAdmin installed on your server.
Step-by-step guide
Step 1: Install necessary dependencies
Before you begin, make sure your server has the required packages to compile software.
yum install gcc make wget
For Ubuntu/Debian systems, use:
apt-get install gcc make wget
Step 2: Download and extract the latest PCRE version
You will need to download and extract the latest version of PCRE that includes UTF-8 support. Use the following commands to do this:
cd /usr/local/src wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz tar -zxvf pcre-8.44.tar.gz cd pcre-8.44
Step 3: Configure PCRE with UTF-8 support
Run the following command to configure PCRE with UTF-8 support enabled:
./configure --enable-utf --enable-unicode-properties
Step 4: Compile and install PCRE
After configuring, proceed with compiling and installing PCRE:
make make install
Step 5: Verify the installation
You can verify that PCRE has been compiled with UTF-8 support by using the following command:
pcretest -C
Look for the output indicating that UTF-8 support is enabled. You should see something like this:
UTF-8 support: yes Unicode properties: yes
Step 6: Recompile or restart services
Depending on your application setup, you may need to recompile the application that depends on PCRE or simply restart services like Apache or Nginx:
service httpd restart
For Nginx:
service nginx restart
Conclusion
Following these steps will resolve the PCRE is not compiled with PCRE_UTF8 support error in DirectAdmin. By configuring PCRE to support UTF-8 encoding and Unicode properties, you ensure compatibility with applications that require this functionality.
For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com.
Article posted on 15 April 2020 by Louis