启用opcache

季宏言 |

在drupal安装过程中会出现opcache未启用的警告,下面我们来解除这个警告。

警告内容:

 

PHP OPCODE CACHING
Not enabled
PHP OPcode caching can improve your site's performance considerably. It is highly recommended to have OPcache installed on your server.

5.All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the online handbook.

进入宝塔后台|软件商店|已安装|php-7.3(对应的php版本)|设置

找到opcache,然后安装

在php配置中启用:宝塔后台|文件|/www/server/php/73/etc路径下找到php.ini,然后编辑将前面的分号 ; 取消, 然后保存文件

再回到宝塔后台|软件商店|已安装|php-7.3(对应的php版本)|设置中 重启服务

接下来到网站前台刷新下,警告被解除了。

添加新评论

此字段内容将保密,不会被其他人看见。