Configurando APC no PHP

1 – Instale o pacote do APC

apt-get install php-apc

2 – Copie o arquivo do APC para o raiz do apache

cp /usr/share/doc/php-apc/apc.php.gz /var/www/html
gunzip /var/www/apc.php.gz

3 – Edite as informações de login do APC alterando os parâmetros: ADMIN_USERNAME e ADMIN_PASSWORD

vi /var/www/apc.php

4 – Configure a quantidade de memória que será utilizada pelo APC adicionado a linha abaixo:

vi /etc/php5/conf.d/apc.ini

apc.shm_size=128

Acesse o APC

http://localhost/apc.php

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s