Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Zend OPcache API is restricted by "restrict_api" configuration directive

Started by Muut Archive 10 years ago · 10 replies · 2698 views
10 years ago

Any idea how to get around this error? I've heard Rackspace did something with this flag recently but I'm not seeing it in the admin on all of our grav sites on Rackspace.

10 years ago

Sorry for the double post, I can't delete the other one though. Rackspace broke this 8 days ago. The .htaccess flag they recommend does it turn it off. Every grav site we host will be broken with no way to repair it unless we can figure a workaround.

10 years ago

Just an FYI if anyone else is on Rackspace and wondering what is going on. I'll let you know if we find a way.

10 years ago

This is what they recommended in the .htaccess if it helps anyone else, didn't work for us: php_flag xcache.cacher 0

9 years ago

Anyone found a more permanent fix for this? I'm also trying to get Grav running on Rackspace - the above solution worked but I'm still having issues accessing the admin now, getting the same "Zend OPcache API is restricted" message. I'm also concerned making a temp change in the system files will just get overwritten when the CMS is updated.

Any assistance would be much appreciated.

9 years ago

We'll probably stop using Grav just for this issue. Easier to stop using it than to stop using our hosting.

9 years ago

@julizmt, where is this error coming from? Can you please turn on:

YAML
errors:
  display: true

In your user/config/system.yaml and provide the trace that points to the file and line that throws the error.

9 years ago

BTW, i think you can just disable opcache via your .htaccess:

TXT
php_flag opcache.enable Off
9 years ago

Just one thought, the fact that RackSpace is forcibly disabling opcache is just going to hurt your performance. Seems on odd choice on their part. I would think there are better hosting opportunities that don't cripple PHP performance like that.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1281 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4018 9 years ago
Archive · by Muut Archive, 9 years ago
1 2894 9 years ago
Archive · by Muut Archive, 9 years ago
3 1077 9 years ago