Question
How do I add OPcache to PHP 8.5?
Answer
OPCache is included automatically with PHP 8.5. Because of this, /opt/cpanel/ea-php85/root/etc/php.d/10-opcache.ini is no longer included. To make configuration changes for OPcache on PHP 8.5, please modify the main PHP.INI file.
- Access WHM as the
rootuser. - Navigate to Home / Software / MultiPHP INI Editor and select Editor Mode.
- Under Edit the INI settings of a PHP version, select the drop down menu Select a PHP version, and choose ea-php85.
- At the bottom of the php.ini file, add your opcache configuration options.
-
Click Save at the top right to save the php.ini changes.
Comments
0 comments
Article is closed for comments.