PHP shows the error: Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory

Created:

2016-11-16 12:49:49 UTC

Modified:

2017-08-16 16:49:39 UTC

1

Was this article helpful?


Have more questions?

Submit a request

PHP shows the error: Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

PHP shows error:

    # php -v
Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory
PHP 5.4.25-1+sury.org~precise+2 (cli) (built: Feb 12 2014 10:45:30)
Copyright (c) 1997-2014 The PHP Group

Cause

System tries to load module which does not exist physically on the server.

Resolution

  1. Locate present opcache.so in PHP configuration file:

    # egrep -ir "opcache" /etc/php/*
    /etc/php5/mods-available/opcache.ini:extension=opcache.so
  2. Make sure that such library exists phisically on the server.

  3. If library is absent, disable/comment opcache.so module in configuration file ( /etc/php5/mods-available/opcache.ini ) due to such module is not found.

Have more questions? Submit a request
Please sign in to leave a comment.