PHP.ph

28 Jul, 2008

Fedora 9: Installing APC

Posted by: php In: Apache| Fedora Core| PHP

Alternative PHP Cache (APC) is a free and open opcode cache. It provides open and robust framework for caching and optimizing PHP intermediate code.

For this Fedora 9 apc installation, /var/www/html is used as the main html folder for http://server.domain.com.

If installed, uninstall eaccelerator first before installing Alternative PHP Cache as APC may conflict with eaccelerator.
Through SSH
yum remove php-eaccelerator

Install php-pecl-apc
yum -y install php-pecl-apc
apc install

Restart apache
/etc/init.d/httpd restart

Point your browser to your phpinfo.php to verify if apc was installed
phpinfo

Control Panel

Find APC GUI / control panel
locate apc.php

Copy [directory]/apc.php to your html folder
cp /usr/share/doc/php-pecl-apc-3.0.19/apc.php /var/www/html

Point your browser to apc.php
http://server.domain.com/apc.php

To Enable Login

Change directory.
cd /var/www/html

Edit apc.php
vi apc.php

Find and change the username apc, and password to enable apc.php login
defaults('ADMIN_USERNAME','apc');
defaults('ADMIN_PASSWORD','password');

Save and quit
:wq

Tags: , ,

No Responses to "Fedora 9: Installing APC"

Comment Form

About PHP.ph

Linux Apache MySQL PHP