我正在系统上安装Magento 2,经过反复的研究,终于找到了localhost设置向导。在“准备检查安装”屏幕中发生了以下问题(在线有几个解决方案,我已经尝试了其中的大多数解决方案):
ERROR: 1个缺少的PHP扩展:PHP Extension curl重要的是我为此使用了Manjaro,这是Arch Linux发行版。
1:问题是,arch Linux软件包存储中根本没有no php-curl软件包,我认为curl扩展已经与php一起安装了。
2:我检查了我的php.ini文件,并且有no line,其扩展名= php_curl,仅扩展名= curl。
3:php -m
打印此:php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom exif FFI fileinfo filter ftp gd gettext gmp hash iconv intl json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar phpdbg_webhelper posix pspell readline Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache
4:我为brew安装了所有Linux版本,因此可以像这样检查php包:
brew info [email protected] [email protected]: stable 7.3.13 (bottled) [keg-only] General-purpose scripting language https://www.php.net/ /home/linuxbrew/.linuxbrew/Cellar/[email protected]/7.3.13 (520 files, 86.2MB) Poured from bottle on 2020-01-10 at 10:32:22 From: https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/[email protected] ==> Dependencies Build: httpd ✘, pkg-config ✘, xz ✔ Required: apr ✔, apr-util ✔, argon2 ✔, aspell ✔, autoconf ✔, curl-openssl ✔, freetds ✔, freetype ✔, gettext ✔, glib ✔, gmp ✔, icu4c ✔, jpeg ✔, libpng ✔, libpq ✔, libsodium ✔, libzip ✔, openldap ✔, [email protected] ✔, sqlite ✔, tidy-html5 ✔, unixodbc ✔, webp ✔, bzip2 ✔, libedit ✔, libxml2 ✔, libxslt ✔, zlib ✔ ==> Caveats To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php7_module /home/linuxbrew/.linuxbrew/opt/[email protected]/lib/httpd/modules/libphp7.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> Finally, check DirectoryIndex includes index.php DirectoryIndex index.php index.html The php.ini and php-fpm.ini file can be found in: /home/linuxbrew/.linuxbrew/etc/php/7.3/ [email protected] is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew, because this is an alternate version of another formula. If you need to have [email protected] first in your PATH run: echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc For compilers to find [email protected] you may need to set: export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/[email protected]/lib" export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/[email protected]/include" Warning: [email protected] provides a launchd plist which can only be used on macOS! You can manually execute the service instead with: php-fpm ==> Analytics install: 75 (30 days), 96 (90 days), 96 (365 days) install-on-request: 75 (30 days), 96 (90 days), 96 (365 days) build-error: 0 (30 days)
我真的不知道如何防止此错误。
我正在系统上安装Magento 2,经过反复的研究,终于找到了localhost设置向导。在准备检查安装屏幕中出现以下问题(有...
我相信ext-curl是Arch核心PHP软件包的一部分,这就是为什么您无法在pacman中找到它。我不think