Installing and configuring PHP Opcache on Ubuntu 20.04 For Apache and Nginx

The guide below describes how to install PHP Opcache on Ubuntu 20.04 For both Apache and Nginx.

Made in seconds.

For Apache systems

We start the terminal and install Opcache:

Edit the php.ini file

and add at the end:

We restart the Apache server:

In the case of Nginx the procedure is very similar:

Installation:

Edit the php.ini file

We add at the end of the file:

And we overload services

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.