Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in magento2

If you getting this : Then you have to check the php version, suppose I am running command like:

php7.2-sp bin/magento setup:upgrade

or
php7.2 bin/magento setup:upgrade

So you have to check you php version and then run your command.

Comments