gpt4 book ai didi

php - Phalcon.ini 在 phpifo 中加载但 phalcon 没有安装

转载 作者:行者123 更新时间:2023-12-04 18:59:12 27 4
gpt4 key购买 nike

我正在尝试安装 Phalcon4php7.4-fpm我看到 phalcon 的 ini 文件已加载到我的 phpinfo() 中。这里
enter image description here
但我仍然收到以下错误

Problem 1
- phalcon/incubator-logger[v1.0.0-beta.1, ..., v1.0.1] require ext-phalcon ^4.0 -> it is missing from your system. Install or enable PHP's phalcon extension.
- Root composer.json requires phalcon/incubator-logger ^1.0 -> satisfiable by phalcon/incubator-logger[v1.0.0-beta.1, v1.0.0, v1.0.1].

To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/15-xml.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-curl.ini
- /etc/php/7.4/cli/conf.d/20-dom.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gd.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-mbstring.ini
- /etc/php/7.4/cli/conf.d/20-mysqli.ini
- /etc/php/7.4/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-simplexml.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
- /etc/php/7.4/cli/conf.d/20-xmlreader.ini
- /etc/php/7.4/cli/conf.d/20-xmlrpc.ini
- /etc/php/7.4/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.4/cli/conf.d/20-xsl.ini
- /etc/php/7.4/cli/conf.d/50-phalcon.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
如何让 Phalcon4 为我工作?我在 Ubuntu 20.04 上运行 LEMP 堆栈
TIA

最佳答案

该错误表明您正在尝试通过 CLI 加载 phalcon,您的 phpinfo() 输出仅显示为 FPM 加载 phalcon。
您需要在两个配置 ini 文件中加载扩展:
Documentation :

; Ubuntu/Debian with Php7-fpm: Add a File Called 30-phalcon.ini in /etc/php7/fpm/conf.d/ with This Content:
extension=phalcon.so

; Ubuntu/Debian with Php7-cli: Add a File Called 30-phalcon.ini in /etc/php7/cli/conf.d/ with This Content:
extension=phalcon.so

关于php - Phalcon.ini 在 phpifo 中加载但 phalcon 没有安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68959418/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com