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

March 11, 2017 | By the+gnu+linux+evangelist.

Installing PHP 7 APC Ubuntu 16.04 Xenial LTS

Hi! 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 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

    In case first see: Terminal QuickStart Guide.

  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 when Downloaded with Firefox may be into the Temporary directory /tmp/mozilla*)

    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*/
    phpize
    ./configure
    make
    sudo make install
  7. Enabling the PHP APC Extension for Apache Web Server:

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

    Append.

    on the Extensions Section:

    /nextension=apcu.so;

    Ctrl+x to Save & Exit.

  8. ReStart Apache to Load the APC Module:

    service apache2 restart
    exit
  9. Best APC SetUp for Production

    Fastest APC SetUp

QuickChic Theme • Powered by WordPress