• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

PHP modules, undefined symbol: php_pcre_exec in Unknown on line 0

Roy Boverhof

Basic Pleskian
I keep getting the following error message on one of my Plesk machines running 10.4.4:

server#php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: undefined symbol: php_pcre_exec in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/zip.so' - /usr/lib/php/modules/zip.so: undefined symbol: php_pcre_exec in Unknown on line 0
PHP 5.3.3 (cli) (built: Feb 22 2012 19:37:49)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.

Does anyone know how to fix this?
 
Do you have these libraries

/usr/lib/php/modules/fileinfo.so
/usr/lib/php/modules/zip.so

or you have

/usr/lib64/php/modules/fileinfo.so
/usr/lib64/php/modules/zip.so

?
 
Do you have these libraries

/usr/lib/php/modules/fileinfo.so
/usr/lib/php/modules/zip.so

or you have

/usr/lib64/php/modules/fileinfo.so
/usr/lib64/php/modules/zip.so

Yes, they are there:

[root@server ~]# cd /usr/lib/php/modules/
[root@server modules]# ls
curl.so json.so phar.so
dom.so mbstring.so sqlite.so
fileinfo.so mcrypt.so sw-engine
gd.so mysqli.so wddx.so
imap.so mysql.so xmlreader.so
ioncube_loader_lin_5.1.so pdo_mysql.so xmlwriter.so
ioncube_loader_lin_5.2.so pdo.so xsl.so
ioncube_loader_lin_5.3.so pdo_sqlite.so zip.so
 
A Solution

I have had this errors message since upgrading to 10.4. whatever and replacing /usr/lib64/php/modules/fileinfo.so
and /usr/lib64/php/modules/zip.so with copies off a similar 10.4.something (64bit) plesk that didn't have these errors

make sure you backup your originals before trying the two attached in the zip

(this is from a centos 5 plesk 10.4 something)

ymmv but give this a shot
 

Attachments

  • fileinfosoANDzipso.zip
    227 KB · Views: 125
Thanks! I have overwritten those 2 files with files from another server, worked perfectly!

I just wonder how something like this can happen on a freshly installed server?
 
Oh I have the same issue but with Plesk 11.0.9 in Centos 5.6 64bit. Could anybody send to me those files for replace my bad ones please? Thanks in advance.
 
Back
Top