Remote-access Guide

php apcu remote access

by Carol Bartell Sr. Published 2 years ago Updated 2 years ago
image

Then log in to your server as a root user using SSH credentials. sudo apt-get -y install gcc make autoconf libc-dev pkg-config sudo pecl7.X-sp install apcu_bc After successful installation, don’t forget to generate a configuration file for a PHP extension. Hit the below command in terminal to restart the PHP.

Full Answer

How do I install APCU-BC?

To install apcu-bc, you must first install APCu . If you have not installed APCu, you won't be able to install apcu-bc. Next, SSH in to your server as root and run the following commands: Once installed, create a configuration file for the extension and restart PHP by running the following commands as root:

What versions of PHP does The APCU-BC extension support?

The apcu-bc extension is not relevant to PHP versions before PHP 7.0. For PHP 5.4, only the APC extension is relevant. For PHP 5.5 and 5.6, only the APCu extension is relevant. You can verify apcu-bc is installed correctly by running this command:

What is The APCU backwards compatibility module?

The APCu Backwards Compatibility (apcu-bc) module extends the APCu module to add full backwards compatibility with APC for PHP 7.0, 7.1, and 7.2. The reason apcu-bc exists is because starting with PHP 7.0, APCu removed the option for full backwards compatibility with APC that existed with APCu in PHP 5.5 and 5.6.

Which version of APC is backwards compatible with PHP 7?

In the examples shown, replace "7.X" with your app's PHP version (for example, "7.0" or "7.1"). The APCu Backwards Compatibility (apcu-bc) module extends the APCu module to add full backwards compatibility with APC for PHP 7.0, 7.1, and 7.2.

image

Installation

For Agent v7.21+ / v6.21+, follow the instructions below to install the PHP APCu check on your host. See Use Community Integrations to install with the Docker Agent or earlier versions of the Agent.

Configuration

Edit the php_apcu.d/conf.yaml file, in the conf.d/ folder at the root of your Agent’s configuration directory to start collecting your php_apcu performance data. See the sample php_apcu.d/conf.yaml file for all available configuration options.

Validation

Run the Agent’s status subcommand and look for php_apcu under the Checks section.

Service Checks

php_apcu.can_connect Returns CRITICAL if the Agent is unable to connect to and collect metrics from the monitored APCu instance. Returns OK otherwise. Statuses: ok, critical

Why does APCu-BC exist?

The reason apcu-bc exists is because starting with PHP 7.0, APCu removed the option for full backwards compatibility with APC that existed with APCu in PHP 5.5 and 5.6.

Is APCu relevant to PHP 5.5?

The apcu-bc extension is not relevant to PHP versions before PHP 7.0. For PHP 5.4, only the APC extension is relevant. For PHP 5.5 and 5.6, only the APCu extension is relevant.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9