pagekit icon indicating copy to clipboard operation
pagekit copied to clipboard

Zend OPcache API is restricted by "restrict_api"

Open ahoiroman opened this issue 8 years ago • 0 comments

Problem

Once restrict_api is enabled, the setup of Pagekit does not work. The installer throws

Zend OPcache API is restricted by "restrict_api" in app/installer/src/Installer.php on line 40.

Checking this out, the following lines are causing this error:

        if (function_exists('opcache_reset')) {
            opcache_reset();
        }

A possible solution could be to check, if opcache.restrict_api is returning something or not.

Technical Details

  • Pagekit version: 1.0.13
  • Webserver: Apache 2.4
  • Database: SQLite
  • PHP Version: 7.1

ahoiroman avatar Feb 26 '18 11:02 ahoiroman