• 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

Unable to load dynamic library

mavera2

Basic Pleskian
I know that this error is asked million times in forum: https://www.google.com/search?q=site:forum.parallels.com+Unable+to+load+dynamic+library
But I couldn't find the solution. I get warning for "apc.so".
I want to prevent this warning.
I don't want to install APC module.

[root@host php.d]# php -m | grep apc
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20090626/apc.so' - /usr/lib64/20090626/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0

[root@host php.d]# grep -r apc /etc/php.ini
[root@host php.d]#

[root@host php.d]# ls /etc/php.d
apc.ini dom.ini gd.ini ioncube.ini mbstring.ini mysql.ini pdo.ini pdo_sqlite.ini sqlite3.ini xmlreader.ini xsl.ini zip.ini
curl.ini fileinfo.ini imap.ini json.ini mysqli.ini newrelic.ini pdo_mysql.ini phar.ini wddx.ini xmlwriter.ini zend_extensions_psa.ini

[root@host php.d] # vi /etc/php.d/apc.ini
;extension=apc.so


So where does "apc.so" is run ?
I couldn't find what triggers this extension ?

(Plesk 11.5.30 #28, centos 6.3, PHP 5.4.23)
 
Last edited:
Through shell you can navigate to the php loaded modules folder. There you should find an apc.ini file with that record it. Just rename or delete it.
 
Back
Top