XF 2.0 CLI tools not doing anything?

Fasberry

New member
XenForo installed properly, everything working from the ACP, but CLI doesn't seem to work

Bash:
NOVA-IOTA:xf2 brandontorzeski$ php cmd.php xf-addon:install XFMG -v

                            
  [XF\Db\Exception]         
  No such file or directory 
                            

Exception trace:
 () at /Users/brandontorzeski/Sites/xf2/src/XF/Db/Mysqli/Adapter.php:121
 XF\Db\Mysqli\Adapter->makeConnection() at /Users/brandontorzeski/Sites/xf2/src/XF/Db/Mysqli/Adapter.php:24
 XF\Db\Mysqli\Adapter->getConnection() at /Users/brandontorzeski/Sites/xf2/src/XF/Db/AbstractAdapter.php:46
 XF\Db\AbstractAdapter->connect() at /Users/brandontorzeski/Sites/xf2/src/XF/Db/AbstractAdapter.php:68
 XF\Db\AbstractAdapter->query() at /Users/brandontorzeski/Sites/xf2/src/XF/Mvc/Entity/Finder.php:1134
 XF\Mvc\Entity\Finder->fetch() at /Users/brandontorzeski/Sites/xf2/src/XF/AddOn/Manager.php:112
 XF\AddOn\Manager->getInstalledEntities() at /Users/brandontorzeski/Sites/xf2/src/XF/AddOn/Manager.php:79
 XF\AddOn\Manager->getById() at /Users/brandontorzeski/Sites/xf2/src/XF/Cli/Command/AddOnInstall.php:41
 XF\Cli\Command\AddOnInstall->execute() at /Users/brandontorzeski/Sites/xf2/src/vendor/symfony/console/Command/Command.php:242
 Symfony\Component\Console\Command\Command->run() at /Users/brandontorzeski/Sites/xf2/src/vendor/symfony/console/Application.php:843
 Symfony\Component\Console\Application->doRunCommand() at /Users/brandontorzeski/Sites/xf2/src/vendor/symfony/console/Application.php:194
 Symfony\Component\Console\Application->doRun() at /Users/brandontorzeski/Sites/xf2/src/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at /Users/brandontorzeski/Sites/xf2/src/XF/Cli/Runner.php:63
 XF\Cli\Runner->run() at /Users/brandontorzeski/Sites/xf2/cmd.php:15

xf:addon-install [-f|--force] [--] <id>
 
Your CLI PHP's php.ini file is pointing to a MySQL socket file that doesn't exist. This is different than whatever php.ini file is loading via your web server. You'd need to either adjust the CLI php.ini or change your src/config.php file to use "127.0.0.1" instead of "localhost".
 
Back
Top Bottom