How to Install PHP 7 APC Extension on Ubuntu 16.04 Xenial LTS 32-64bit Linux

March 11, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Installing PHP 7 APC Ubuntu 16.04 Xenial LTS

Hello Ubuntu User! The Tutorial Shows You Step-by-Step How to Install and Enable the Latest PHP 7 Pecl APCu Extension for Ubuntu 16.04 Xenial Xerus LTS i386/amd64 GNU/Linux Server/Desktop.

The Best Way to Install the APC Module is to Provide Directly to Download, Compile and Install the Latest Pecl APCu Release.

APCu is APC stripped of opcode caching. PHP 7 support is available as of APCu 5.0.0.

APCu can provide a compatibility mode, such that it can provide a drop in replacement for the applicable parts of APC.

Install PHP 7 APC Ubuntu 16.04 Xenial LTS - Featured
  1. How to Install/Enable PECL Command on Ubuntu Linux

    PHP 7 PECL for Ubuntu
  2. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Or Login into Server Shell…

    Install PHP 7 APC Ubuntu 16.04 Xenial LTS - Open Terminal
  3. Install the Required Package:

    sudo apt install libpcre3-dev
  4. Download the Latest PHP Pecl APCu Module

    Latest Pecl APCu
  5. Access the Target location
    (Usually Downloads go in the Home folder or the Temporary directory /tmp)

    cd ~/Downloads

    Or when downloaded with Firefox maybe:

    cd /tmp/mozilla*

    To Verify that it’s there List the contents with:

    ls .
  6. Installing APC Extension:

    tar xvzf APC*
    cd APC*/
    sudo make install
  7. Enabling the PHP APC Extension for Apache Web Server:

    sudo nano /etc/php/7.0/cli/php.ini


    on the Extensions Section:;

    Ctrl+x to Save & Exit.

  8. ReStart Apache to Load the APC Module:

    service apache2 restart
  9. Best APC SetUp for Production

    Fastest APC SetUp

Tags: , , , , , , , , , , , , , , , ,