How to check if opcode cache is running on a server?

Is it possible to check if a PHP opcode cache is installed and running on a server without having SSH access to the server? I've checked phpinfo() and can see no reference to APC or eAccelerator, but I'm aware there are other opcode cache systems and am not totally sure that checking phpinfo() is enough to let me know one way or the other.

-------------Problems Reply------------

var_dump(function_exists('apc_store')); or equivalent for the library of your choice.

If using a web server SAPI, as per usual, make sure you restart the server process after editing your php.ini to see the new additions reflected.

Category:php Views:0 Time:2012-01-25
Tags: php linux opcode

Related post

  • How to check if process is still running on Windows server 2008? 2010-01-04

    We have two services: one service is 32-bit (process1) and the other is 64-bit (process2). We have code that process1 is using to check if process2 is running: HANDLE hProcess; RESET_WIN_ERRNO; hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE,

  • How to check if a process is running via a batch script in Windows Server 2003 2011-08-09

    I want use a batch file to check if a process is running on Windows Server 2003 and then start a new instance if not. This is the same question as How to check if a process is running via a batch script but for Windows Server 2003. The answer is slig

  • How to check if APC opcode cache is working fine in PHP? 2011-02-16

    I am using PHP with APC cache enabled: apc.cache_by_default => On apc.enabled => On apc.ttl => 7200 Now how can I know if it is using the opcode cache 100%. For example, let us say that I have this PHP file: <?php echo "Hi there"; ?> N

  • PHP Opcode Caching/Zend Acceleration and include_once vs. require_once 2008-10-16

    I have a colleague who is looking into opcode caching/Zend Acceleration (I've always assumed these are the same thing) for our PHP based application. His Benchmarks appear to indicate that we're NOT seeing a performance benefit if we include our (lar

  • Basics of PHP opcode cache 2009-09-22

    Currently on a very large project that I do not plan to re-use for another site, I have the site's name hardcoded into the files everywhere. Now, if I were ever to change the site name it would take a lot of effort to change that everywhere. I know t

  • Choosing a PHP caching technique: output caching into files vs. opcode caching 2011-01-27

    I've heard of two caching techniques for the PHP code: When a PHP script generates output it stores it into local files. When the script is called again it check whether the file with previous output exists and if true returns the content of this fil

  • Which PHP opcode cacher should I use to improve performance? 2008-08-26

    I'm trying to improve performance under high load and would like to implement opcode caching. Which of the following should I use? APC - Installation Guide eAccelerator - Installation Guide XCache - Installation Guide I'm also open to any other alter

  • Opcode caching in APC and missing files 2009-05-12

    We are using APC as an opcode cache. Is there a way to get APC to cache the non-existence of a file? We have set apc.stat = 0 and apc.include_once_override = 1. Is there something more to do to improve the performance of calling include_once on a fil

  • how the opcode cache actually works? 2009-08-18

    im doing my final project and its about optimizing web performance (focus on caching). i plan to use eaccelearator as a tool in my final project. i need to know the background process of it, the flow diagram about how it works and how an opcode cache

  • Do PHP opcode cache work with __autoload? 2009-09-08

    Sorry if this is basic, I am trying to learn as much as I can about OO in PHP and I am slowly learning how to use it (very limited). So I am wanting to know if __autoload() has any affect on PHP opcode cache's? --------------Solutions------------- (D

  • Simple PHP opcode caching solution which does not need compilation? 2010-02-26

    I have a PHP site where all pages include an 57K generated PHP file. I'm thinking of using an opcode cache, so the file doesn't need to be parsed for every time a page is loaded (I assume loading the already parsed file would be faster than reading t

  • using ie 8 everytime I go to browse a voice keeps telling em to empt cookies and cache, have run malware and virus software and says no infections 2013-01-12

    using ie 8 everytime I go to browse a voice keeps telling me to empty cookies and cache, have run malware and virus software and says no infections, thsi has only been happening in the last couple of days ? Is anyone else having this problem ! How do

  • Opcode cache impact on memory ussage 2008-08-27

    Can anyone tell me what is the memory usage overhead associated with PHP opcode cache? I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increace. I have a small entry level VPS and memory limits are a con

  • How to maintain Hibernate cache consistency running two Java applications? 2008-09-07

    Our design has one jvm that is a jboss/webapp (read/write) that is used to maintain the data via hibernate (using jpa) to the db. The model has 10-15 persistent classes with 3-5 levels of depth in the relationships. We then have a separate jvm that i

  • How to check if a process is running via a batch script 2008-10-02

    How can I check if an application is running from a batch (well cmd) file? I need to not launch another instance if a program is already running. (I can't change the app to make it single instance only.) Also the application could be running as any u

  • How to check if a service is running on Android? 2009-03-01

    How do I check if a background service (on Android) is running? I want an Android activity that toggles the state of the service -- it lets me turn it on if it is off and off if it is on. --------------Solutions------------- I had the same problem no

  • Check if a process is running on a remote system using C# 2009-05-14

    I am trying to check if a process is running on a remote system. I am using the following code: string procSearc = "notepad"; string remoteSystem = "remoteSystemName"; Process[] proce = System.Diagnostics.Process.GetProcessesByName(procSearch, remote

  • How do I check if a process is running from c++ code? 2009-08-24

    I'm writing a C++ app that will communicate with another process via boost::interprocess, however I need to check if the other process is actually running first - as the other process is responsible for creating the inter-process shared memory. How d

  • Check if Mac process is running using Bash by process name 2009-11-30

    How do you check if a process on Mac OS X is running using the process's name in a Bash script? I am trying to write a Bash script that will restart a process if it has stopped but do nothing if it is still running. --------------Solutions-----------

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.171 (s). 11 q(s)