Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for mod-itk? #222

Open
JB1985 opened this issue Mar 17, 2016 · 3 comments
Open

No support for mod-itk? #222

JB1985 opened this issue Mar 17, 2016 · 3 comments

Comments

@JB1985
Copy link

JB1985 commented Mar 17, 2016

Hello,

i have the problem, that i cant find a solution for my setup.

I have running mod-php with mod-itk. So, the vHost are running with a user. But OPCache display me all Scripts which are using OPCache.

opcache.restrict_api isnt a solution, because with mod-itk isnt possible the setup own php.ini.

Have any idea how to use OPCache with mod-itk?

@rlerdorf
Copy link
Contributor

You can set per-host ini directives using [HOST=dev.site.com] blocks.
Documented at http://php.net/manual/en/ini.sections.php

@JB1985
Copy link
Author

JB1985 commented Mar 22, 2016

In the php.ini:

[HOST=dev.site.com]
opcache.restrict_api=docroot

Works! Thank you!

@JB1985
Copy link
Author

JB1985 commented Mar 23, 2016

mhhh, i have try it but it isnt working.

I can see all the cache if I add the HOST or PATH Function in the php.ini

INI directives are only for CGI/FastCGI and not for mod_php that is using by mod_itk.

"These sections are used only in CGI/FastCGI mode and they can not set extension and zend_extension directives. "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants