This module aims at installing the PHP APC to the users machine in all possible ways.
APC is one of the most popular caching mechanism for PHP’s op-code caching. Once activated, it starts caching PHP codes automatically. It also works nicely with W3 Total Cache plugin for storing Object & MySQL caches.
The upcoming topics will guides your entirely in all aspects involved in installing the PHP APC.
The help command guides the users regarding the purpose and as well as about the options that are included in the Php APC module. It lists out the alternative parameters of Php APC module. It also describes the syntax for installing the Php APC module. The help command for Php APC module is shown as below.
ptconfigure PHPAPC help
The syntax for declaring the help command is not case sensitive which is an added advantage. The following screenshot visualize you about the help command under Php APC.
kevell@corp:/# ptconfigure PHPAPC help
******************************
This command allows you to install some common and helpful PHP APC.
PHPAPC, php-apc, phpapc, phpapc
- install
Install PHP APC.
example: ptconfigure phpapc install
------------------------------
End Help
******************************
The command used for installing the Php APC in the users machine is shown below:
ptconfigure phpapc install
After inputting the command above, the following process occurs as shown in the tabular format.
| Parameters | Alternative Parameter | Options | Comments |
|---|---|---|---|
| Install PHP APC? (Y/N) | Instead of phpapc, we can use PHPAPC, php-apc. | Y(Yes) | If the user wish to proceed the installation process they can input as Y. |
| Install PHP APC? (Y/N) | Instead of phpapc, we can use PHPAPC, php-apc. | N(No) | If the user wish to quit the installation process they can input as N.| |
If the user proceeds the installation, during the process of installation is described in the below lists:
Finally, the process of installation gets completed. The following screenshot visually represent the process of installing the PHP APC.
kevell@corp:/# ptconfigure phpapc install
Install PHP APC? (Y/N)
Y
*******************************
* Pharaoh Tools *
* PHP APC! *
*******************************
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
gyp libc-ares-dev libc-ares2 libjs-node-uuid libv8-3.14-dev
linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
node-abbrev node-ansi node-archy node-async node-block-stream
node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent
node-form-data node-fstream node-fstream-ignore node-github-url-from-git
node-glob node-graceful-fs node-gyp node-inherits node-ini
node-json-stringify-safe node-lockfile node-lru-cache node-mime
node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npmlog node-once node-osenv node-qs
node-read node-read-package-json node-request node-retry node-rimraf
node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent
node-which nodejs nodejs-dev ttf-dejavu-core
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
php5-apcu
The following packages will be REMOVED:
php5-xcache
The following NEW packages will be installed:
php-apc php5-apcu
0 upgraded, 2 newly installed, 1 to remove and 78 not upgraded.
9 not fully installed or removed.
[Pharaoh Logging] Adding Package php-apc from the Packager Apt did not execute correctly
... All done!
*******************************
Thanks for installing , visit www.pharaohtools.com for more
******************************
Single App Installer:
--------------------------------------------
PHPAPC: Success
------------------------------
Installer Finished
******************************
This sub topics deals with the most frequently used functions under APC. While working with Php APC the user can refer with these functions of APC.