Internet

Linux

MAC

PC General

Windows

NOTE! Before using any of those informations, be sure you read the Disclaimer! Thank you.

Home » CentOS, Linux

CentOS 6 – Install APC

Submitted by 2 Comments

After you install and configure your environment properly under CentOS LAMP 6 you want to install APC.

What you need before starting:
- PEAR,
- Development of interfaces PHP, Apache & PCRE,
- A C & Make tool.

 yum install php-pear php-devel httpd-devel pcre-devel gcc make

Last, run the compilation of the APC extension.

  pecl install apc

The following questions will be asked, personally I used the defaults.

  Enable internal debugging in APC [no]: 
 Enable per request file info about files Used From The APC cache [no]: 
 Enable spin locks (EXPERIMENTAL) [no]: 
 Enable memory protection (EXPERIMENTAL) [no]: 
 Enable pthread mutexes (default) [yes]: 
 Enable pthread read / write locks (EXPERIMENTAL) [no]:

It enables the PHP extension

  echo "extension = apc.so"> / etc / php.d / apc.ini

And Apache is restarted.

  service httpd restart

You can check that you have successfully installed APC via phpinfo ().

Also, do not hesitate to use the PHP APC administration.
Here, we copy in our HTTP directory.

  cp / usr / share / pear / apc.php / var / www / apc.php

Tips and tutorials references:

install apc centos , centos install apc , centos apc , install apc centos 6 , centos 6 install apc , apc centos , centos 6 APC , install apc on centos , centos apc install , install php apc centos , apc centos 6 , php apc centos 6 , yum install apc centos 6 , centos 6 php APC , how to install apc on centos , apc install centos , centos 6 apc install , installing apc on centos 6 , install php apc centos 6 , centos install php apc

2 Comments »

  • Joseph Williams said:

    Quick and easy. thank you

  • Brian Mark said:

    Why not just yum install php-pecl-apc and call it good? That integrates it better IMO.

Leave a Reply