我正在将cPanel用于Laravel项目。还有快速手册。但是在运行命令php artisan quickbooks:run
时出现错误“ PHP警告:模块'memcached'已在第0行的Unknown中加载”。与其他答案一样,我使用WHM检查php.ini文件以注释该行,但没有此类行。但是在终端中,当我运行php --ini
时,输出为:
[usesrs@CentOS etc]$ php --ini
PHP Warning: Module 'memcached' already loaded in Unknown on line 0
Configuration File (php.ini) Path: /opt/cpanel/ea-php71/root/etc
Loaded Configuration File: /opt/cpanel/ea-php71/root/etc/php.ini
Scan for additional .ini files in: /opt/cpanel/ea-php71/root/etc/php.d
Additional .ini files parsed: /opt/cpanel/ea-php71/root/etc/php.d/10-opcache.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-bcmath.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-bz2.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-calendar.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-ctype.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-curl.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-dba.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-dom.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-enchant.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-exif.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-fileinfo.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-ftp.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-gd.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-gettext.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-gmp.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-iconv.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-imap.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-intl.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-json.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-ldap.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-mbstring.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-mcrypt.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-mysqlnd.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-odbc.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-pdo.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-phar.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-posix.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-pspell.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-shmop.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-simplexml.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-soap.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-sockets.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-sqlite3.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-sysvmsg.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-sysvsem.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-sysvshm.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-tidy.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-tokenizer.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-xml.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-xmlwriter.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-xsl.ini,
/opt/cpanel/ea-php71/root/etc/php.d/20-zip.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-mysqli.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-pdo_mysql.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-pdo_odbc.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-pdo_sqlite.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-wddx.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-xmlreader.ini,
/opt/cpanel/ea-php71/root/etc/php.d/30-xmlrpc.ini,
/opt/cpanel/ea-php71/root/etc/php.d/memcache.ini,
/opt/cpanel/ea-php71/root/etc/php.d/memcached.ini,
/opt/cpanel/ea-php71/root/etc/php.d/zzzzzzz-pecl.ini
[usesrs@CentOS etc]$
我该如何解决这个问题?
答案 0 :(得分:0)
您应该检查
的内容/opt/cpanel/ea-php71/root/etc/php.d/memcache.ini,
/opt/cpanel/ea-php71/root/etc/php.d/memcached.ini,
并可能删除其中之一-或在行首添加注释(#符号)。