Php

How to install APCu on Linux

Today, I will let you know how to install APC (for PHP) on a Linux system. The APC is not compatible with PHP 5.5+ version, So I’ll install and configure APCu which is supported by PHP 5.5+.

What’s APCu Cache

APC is a great op-code caching system for PHP that can help speed up your website. APC Cache helps to bypass the parsing and compiling steps and minimizes web requests to the server.

Also checkout other tutorial of PHP Cache,

Install and Configure APC Cache in Linux

Let’s download and install the APCu cache in our Linux system.

Install APC

We’ll install cache using below command:

$ sudo apt-get install php7.3-apcu -y

This command will install the latest version of APC.

Related Post

Configure APC

You then configure APC, telling it where the executable file php-config is. If you don’t know where this is, then do this:

$ whereis php-config

Output:

php-config: /usr/bin/php-config /usr/share/abc/php-config.1.gz

Restart service

We’ll restart fpm and apache2 services.

sudo service php7.3-fpm restart

sudo service apache2 restart

How To Check APCu is Enable

You can check using phpinfo() output:

Recent Posts

Configure and Retrieve S3 Information Using Laravel PHP-AWS-SDK

This tutorial helps integrate a PHP SDK with Laravel. We'll install aws-php-sdk into laravel application and access all aws services… Read More

2 months ago

What is the Purpose of php_eol in PHP?

in this quick PHP tutorial, We'll discuss php_eol with examples. PHP_EOL is a predefined constant in PHP and represents an… Read More

8 months ago

Laravel Table Relationship Methods With Example

This Laravel tutorial helps to understand table Relationships using Elequonte ORM. We'll explore laravel table Relationships usage and best practices… Read More

8 months ago

Exploring the Power of Laravel Eloquent Join?

We'll explore different join methods of Laravel eloquent with examples. The join helps to fetch the data from multiple database… Read More

9 months ago

Quick and Easy Installation of Laravel Valet

in this Laravel tutorial, We'll explore valet, which is a development environment for macOS minimalists. It's a lightweight Laravel development… Read More

9 months ago

What is Laravel Soft Delete and How Does it Work?

I'll go through how to use soft delete in Laravel 10 in this post. The soft deletes are a method… Read More

9 months ago

Categories