• I see the apc.ini file and can edit them on my server, but when I start the apache server I don’t see those changes registered in the php -i dump.

    I guess what I’m asking is where are the actually apc.ini and php.ini files that my server is using. According to my php -i I see

    Configuration File (php.ini) Path => /etc/php5/cli
    Loaded Configuration File => /etc/php5/cli/php.ini
    Scan this dir for additional .ini files => /etc/php5/cli/conf.d
    Additional .ini files parsed => /etc/php5/cli/conf.d/apc.ini,
    /etc/php5/cli/conf.d/curl.ini,
    /etc/php5/cli/conf.d/gd.ini,
    /etc/php5/cli/conf.d/mcrypt.ini,
    /etc/php5/cli/conf.d/memcached.ini,
    /etc/php5/cli/conf.d/mysql.ini,
    /etc/php5/cli/conf.d/mysqli.ini,
    /etc/php5/cli/conf.d/pdo.ini,
    /etc/php5/cli/conf.d/pdo_mysql.ini

    Any help would be appreciated. I’m using a stock WP install, on a fairly stock Ubuntu install on a EC 2 instance. I installed php_apc using apt-get.

    Thanks in advance,

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Philip Isaacs

    (@pisaacs)

    By the way the /etc/php5/cli/conf.d/apc.ini is basically empty.

    All it saids is
    extension=apc.so

    Thanks,

    Please help

    Thread Starter Philip Isaacs

    (@pisaacs)

    Okay team, so I figured this out.

    First off on my set up the apc.ini file resides in the conf.d directory deep inside my /etc/php5/cli directory. I have know idea why it’s there, but this is the place. Anyhow, because I installed php_apc as a module (apt-get install php_apc) it uses the predefined apc compiled in settings which is why I was seeing the variables in dump out when I ran php -i. Okay to override any of these variables I just needed to add them to this almost blank file and it worked! Great!

    As far as how to enable apc.php. This file is bundled with http://pecl.php.net/package/APC so don’t make the same mistake I did and try to keep accessing the /wp-content/plugins/w3-total-cache/pub/apc.php via your browser because that is not the same file and will not work. Anyhow, just upload the apc.php from the APC Package and your ready to rock. You should be able to view it from http://www.yoursite.com/apc.php

    That’s about it for now.

    Philip

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you change the parameters of the apc.ini file’ is closed to new replies.