Using Ubuntu server 10.4, I apt-getted php-apc
Where is the apc.php file that I'm meant to copy?
Thanks!
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityAccourding to the packages.ubuntu.com page about php-apc the file can be found compressed here /usr/share/doc/php-apc/apc.php.gz
.
If you don't want do look online you can query the list of files installed by the package managment system by using a command like dpkg -L apc.php
.
apc.php
file instead? Dotdeb does not seem to have included that file in their package.
Apr 26, 2013 at 0:46
ar
archive that usually conatains a couple tar.gz files.
Apr 26, 2013 at 0:52
/usr/share/doc/php5-apcu
find / -name apc.php* 2>/dev/null
"Find, within /
, resources matching apc.php*
, and discard stderr."
E.g. this may return /build/buildd/php5-5.3.2/pear-build-download/APC-3.0.19/apc.php
find / -name 'apc.php*'
would have.
Apr 13, 2011 at 15:32
find / -name apc.php* 2>/dev/null
Jul 12, 2012 at 21:12
I came here looking for this file after installing APC on CentOS with PEAR. After tracking it down with Ben's find suggestion, I thought I'd post its path in case others end up here:
/usr/share/pear/apc.php
From the README.Debian
- Viewing statistics and tunning your cache
APC come with a script called apc.php. This script provides detailed information about your cache. In Debian this script is in /usr/share/doc/php-apc. Copy or symlink the file to your docrot and access it with you browser. If you install the php5-gd package you will also be present with graphics. In order to understand the information and use it to tune you cache refer to the APC documentation at: http://php.net/apc
-- Pietro Ferrari Wed, 17 Dec 2008 11:23:39 -0500
This file was located in /usr/share/doc/php-apc
If nothing else works, you can download it directly from PECL by hand:
cd /tmp
wget http://pecl.php.net/get/APCu -O - | tar xz --wildcards apcu*/apc.php
mv apcu*/apc.php apc.php
rm -r apcu*/
# mv apc.php /wherever/you/want/apc.php
You can get it here for apcu https://raw.githubusercontent.com/krakjoe/apcu/master/apc.php You can also look through the repo here https://github.com/krakjoe/apcu
You may consider this as a replacement for apc.php.