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+.
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,
Let’s download and install the APCu cache in our Linux system.
We’ll install cache using below command:
$ sudo apt-get install php7.3-apcu -y
This command will install the latest version of 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
We’ll restart fpm
and apache2
services.
sudo service php7.3-fpm restart sudo service apache2 restart
You can check using phpinfo()
output:
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
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
This Laravel tutorial helps to understand table Relationships using Elequonte ORM. We'll explore laravel table Relationships usage and best practices… Read More
We'll explore different join methods of Laravel eloquent with examples. The join helps to fetch the data from multiple database… Read More
in this Laravel tutorial, We'll explore valet, which is a development environment for macOS minimalists. It's a lightweight Laravel development… Read More
I'll go through how to use soft delete in Laravel 10 in this post. The soft deletes are a method… Read More