配置CacheTool&;PHP-FPM

配置CacheTool&;PHP-FPM,php,fpm,opcache,php-deployer,Php,Fpm,Opcache,Php Deployer,我正在尝试使用部署器中的 我在配置cachetool时遇到问题 使用WHM/cPanel和PHP版本是PHP7.4(ea-php74) set('cachetool','/var/cpanel/php fpm//sock') 导致以下错误: In AbstractCommand.php line 39:

我正在尝试使用部署器中的

我在配置cachetool时遇到问题

使用WHM/cPanel和PHP版本是PHP7.4(
ea-php74

set('cachetool','/var/cpanel/php fpm//sock')
导致以下错误:

In AbstractCommand.php line 39:                                                                                                                                                                                                                                                               
Extension `Zend OPcache` is not loaded
                                                                                                                                                                                   
opcache:reset
使用域的特定套接字文件:
set('cachetool','/opt/cpanel/ea-php74/root/usr/var/run/php fpm/.sock')

导致

In FastCGI.php line 114:
Error: File not found.
opcache:reset
正在尝试使用IP:
set('cachetool','127.0.0.1:9000')
返回

我对所有配置文件/可能性都有点迷茫,有人能帮我吗?谢谢

定义
--fcgi chroot
和/或
--tmp dir
选项使其工作

自[自述][1]:

故障排除


[运行时异常] 错误:无法打开主脚本:/dev/shm/cachetool-584743c678dbb.php(没有这样的文件或目录) 状态:找不到404 内容类型:text/html;字符集=UTF-8 没有指定输入文件

这意味着cachetool无法写入
/dev/shm
以提供 cachetool可以通过
php cachetool.phar--tmp dir=/writable/dir
或配置写入的目录

  • 要连接到chrooted fastcgi服务器,您需要设置
    --fcgi chroot
    --tmp dir
    参数
php cachetool.phar opcache:status--fcgi=/var/run/php5-fpm.sock--fcgi chroot=/path/to/chroot--tmp dir=/path/to/chroot/tmp
================                                                                                               
In FastCGI.php line 143:                       
FastCGI error: Unable to connect to FastCGI application: Connection refused (127.0.0.1:9000)                                                                                                             
In Socket.php line 320:
Unable to connect to FastCGI application: Connection refused

In Socket.php line 270:                                  
stream_socket_client(): unable to connect to tcp://127.0.0.1:9000 (Connection refused)

opcache:reset