Enabling PHP APC for Apache on Elementary OS Linux
You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Enable the Latest PHP Pecl APC Extension for the Apache Web Server on Elementary OS 0.3-Freya/0.2-Luna GNU+Linux i386/amd64 Desktop.
The Best Way to Install the APC Module is to Provide Directly to Download, Compile and Install from Source the Latest Pecl APC Release.
To the Article Top there is a Link to Guide on How to Enable the Needed PECL Command for Elementary OS Linux.
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
APC is a framework that caches the output of the PHP bytecode compiler in shared memory, thus Reducing Parsing and Disk I/O overhead for later requests; and a shared memory cache for user data.
How to Install/Enable PECL Command on Elementary OS LinuxPHP PECL Installation for Elementary OS
Open a Shell Terminal Emulator Window
Ctrl+t on Desktop
(Press “Enter” to Execute Commands)
Install the Required Package:
sudo apt-get install libpcre3-dev
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Download the Latest PHP Pecl APC ModuleLatest Pecl APC
Installing APC Extension:
tar xvzf APC*
sudo make install
Enabling the PHP APC Extension on Apache Web Server:
sudo nano /etc/php5/apache2/php.ini
on the Extensions Section:
Ctrl+x to Save & Exit from the nano Editor :).
ReStart Apache to Load the APC Module:
sudo service apache2 restart
Best APC SetUp for ProductionFast APC SetUp
Tags: APC, Elementary OS, elementary os apc, elementary os php accelerator, Elementary OS tutorial, Getting Started, gnu, gnu/linux, Guide, How-to, Install, Linux, linux Elementary OS, Linux Tutorial, Pear, Pecl, PHP, php extension elementary os, php extension linux, Tutorial, Unity, Visual-Guide