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.
-
How to Install/Enable PECL Command on Ubuntu Linux
Here PHP 7 PECL for Ubuntu
Links to Installation/Enabling Guides of Latest Pecl Command for Ubuntu Distro
-
Open Terminal Window
(Press “Enter” to Execute Commands).
Or Login into Server Shell…
In case first see: Terminal QuickStart Guide.
-
Install the Required Package:
Copy
sudo apt install libpcre3-dev
-
Download the Latest PHP Pecl APCu Module
Link to Download the PHP Pecl APC Module
-
Access the Target location
(Usually Downloads go in the Home folder or when Downloaded with Firefox may be into the Temporary directory /tmp/mozilla*)
Or when downloaded with Firefox maybe:
To Verify that it’s there List the contents with:
-
Installing APC Extension:
-
Enabling the PHP APC Extension for Apache Web Server:
Copy
sudo nano /etc/php/7.0/cli/php.ini
Append.
on the Extensions Section:
/nextension=apcu.so;
Ctrl+x to Save & Exit.
-
ReStart Apache to Load the APC Module:
Copy
service apache2 restart
-
Best APC SetUp for Production
How to Make the Best PHP APC SetUp on Productions