PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/apc.so’

debiandebian-squeezePHPphp.iniphp5

I have updated my php from 5.3.3 to 5.4.31. I have a Debian 6 Squeeze.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' - /usr/lib/php5/20100525/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/suhosin.so' - /usr/lib/php5/20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0

During the installation, the system ask me if I want to keep the actual php.ini or put the new one. I said to keep the actual one.

Now, I have this 2 errors when I restart Apache..

What should I do to solve them?

Best Answer

If you are not planning to use APC then this can be safely removed from your PHP configuration.

First, find your php.ini file and edit it.

Find "apc" in the php.ini file, you should find a line that looks like this:

extension=apc.so

You can comment out this line by adding a semi-colon in front, e.g.

;extension=apc.so

If you cannot find the "apc.so" reference in your php.ini file, it could be included in a separate file. You could locate it by searching for the string "apc.so" within all files on your server, it must be there somewhere!

Just comment out that line then restart Apache.

Related Topic