Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I set up OwnCloud on my Windows Server 2008 box. I run my blog on the machine as well and I wanted to set up APC. My blog runs fine with APC running, but for some reason it causes a bunch of javascript errors with OwnCloud. I tried to set up apc.filters to exclude OwnCloud but no matter what I try it doesn't seem to make a difference. Anyone know the proper syntax with Windows directory paths?

share|improve this question

1 Answer 1

Here is a line from my WampDeveloper server (Apache and PHP on Windows) for APC filters to exclude a couple of things. You should be able to infer the syntax.

apc.filters="apc\.php$,phpinfo\.php$,.*phpMyAdmin.*"

apc.filters - http://www.php.net/manual/en/apc.configuration.php#ini.apc.filters

A comma-separated list of POSIX extended regular expressions. If any pattern matches the source filename, the file will not be cached. Note that the filename used for matching is the one passed to include/require, not the absolute path. If the first character of the expression is a + then the expression will be additive in the sense that any files matched by the expression will be cached, and if the first character is a - then anything matched will not be cached. The - case is the default, so it can be left off.

So don't use full paths. Just file names. And from testing before, don't even try to use folders (no folders anywhere in the string)... I could never get that to work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.