How to install php72-php-opcache on Amazon Linux
The Zend OPcache
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | x86_64 | Version |
|---|---|---|---|
| Amazon Linux 2 | Base | 7.2.34 |
Description
The Zend OPcache provides faster PHP execution through opcode caching and optimization. It improves PHP performance by storing precompiled script bytecode in the shared memory. This eliminates the stages of reading code from the disk and compiling it on future access. In addition, it applies a few bytecode optimization patterns that make code execution faster.
Built for Amazon Linux.
Install
php72-php-opcache on Amazon Linux 2
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install php72-php-opcache
Package downloads require an active GetPageSpeed subscription — one repository for php72-php-opcache and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install php72-php-opcache on Amazon Linux?
Add the GetPageSpeed repository, then install the php72-php-opcache package with your system package manager.
Which Amazon Linux versions is php72-php-opcache available for?
php72-php-opcache is available for Amazon Linux 2.