Install Zend OPcache in DirectAdmin

Install Zend OPcache in DirectAdmin

Zend OPcache is basically a modern PHP script caching module which helps to accelerate the PHP performance on the server. It gives a faster PHP execution through Opcode caching and optimization. It also improves the performance of PHP by storing the pre-compiled script code in the shared memory of the server.

This pre-compiled script codes will terminate reading the code from the disk and executing it on future accessing. Zend OPcache will also apply some code optimization pattern which helps to execute the code faster than the normal.

Install Zend OPcache

1) SSH to the server as root user.

2) Enter into the custom build directory. Which is located below.

# cd /usr/local/directadmin/custombuild

3) Set the OPcache to Yes.

# ./build set opcache yes

Now you will get an output as follows.

[root@user custombuild]# ./build set opcache yes

Changed opcache option from no to yes.

4) Run the below command to execute the OPcache module.

# ./build opcache

while executing, you will get an output like as follows.

[root@user custombuild]# ./build opcache

opCache 7.0.5 is now installed for PHP 5.5.

opCache 7.0.5 PHP extension has been installed successfully.

5) We can check that the OPcache is listing correctly in different ways.

Here I’m listing some of the commands to verify the same.

[root@user /]# php -v

PHP 5.5.36 (cli) (built: Jun  7 2016 05:59:15)

Copyright (c) 1997-2015 The PHP Group

Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

 

or

 

[root@user /]# php -m | grep -i zend

Zend Opcache

[Zend Modules]

Zend Opcache

 

or

 

[root@user /]# php -v | grep -i zend

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

with Zend OPcache v7.2.10, Copyright (c) 1998-2015, by Zend Technologies

 

Also, we can check it by creating a phpinfo.php page and check it from a browser.

If you need any further help, please do reach our support department.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Set up DirectAdmin to Use a Remote MySQL Server

Set up DirectAdmin to Use a Remote MySQL Server We can set up MySQL to be run on an external...

Redirect Website /Path to Use HTTPS in DirectAdmin

Redirect Website /Path to Use HTTPS in DirectAdmin Nowadays, If you are not using an SSL...

How to Use IPv6 Address in DirectAdmin

How to Use IPv6 Address in DirectAdmin As we all know that what is an IP address?. It is nothing...

Too Low or 0.00 Disk Usage in DirectAdmin

Too Low or 0.00 Disk Usage in DirectAdmin To check the partition on our server, need to run the...

Autodiscover Information For Mail Clients in DirectAdmin

Autodiscover Information For Mail Clients in DirectAdmin Autodiscover is a system to figure out...