An error arrives in the mail with the following header:

Cron [-x / usr / lib / php / sessionclean] && / usr / lib / php / sessionclean

and with such content:

PHP Warning: PHP Startup: Unable to load dynamic library '/ usr / lib / php / 20151012 /' - / usr / lib / php / 20151012 /: cannot read the file in this directory

What can it be and how to fix it?

  • Um, just when completing a task from the header of a topic, kroner receives a warning from this script (?) About it and informs you in a letter ... - nobody
  • That is, can I ignore the error? or something you need to do?) - Nurullaev
  • Well, it depends on what it is and whether it is necessary for you :) If I am not mistaken, they have already discussed it here, and you have to decide whether or not it :) link: linux.org.ru/forum/general / 12787841 + "workaround": stackoverflow.com/questions/36784385/… - nobody
  • duplicate: stackoverflow.com/q/575776/178576 - aleksandr barakin
  • I can't add anything to it. I wrote from the phone there. can I remove that question? - Nurullaev

1 answer 1

Apparently, in one of the configuration files loaded by the php interpreter during startup (this is indicated by the Unknown on line 0 ), there is a line like this (well, or something like that):

 extension=/usr/lib/php/20151012/ 

You can find out the exact list of interpreted ini-files, for example, by calling the function phpinfo() .


most often they are “concentrated” in the region of directories /ect/php* . You can search for a file with such content, for example, like this:

 $ grep -r '/usr/lib/php/20151012/' /etc/php* 

and, having found, make the necessary changes (delete this line or comment out).

  • can you tell me step by step how to do this? I'm new to this. Ubuntu 16/04 panel Ispmanager - Nurullaev