WHM cpanel magento 2 php cli command error

By | March 29, 2019
Spread the love

If you saw error php-cli: command not found when running magento command php bin/magento, then you need to run following commands.

To fix this error, you need to enable php cli mode. Run following command source /opt/cpanel/ea-php72/enable based on your php version.

It will solve your problem. but it will come again when you will reboot your server. You need to apply permanent solution.  If you need to make it work in every SSH session, then you could add the command to the bash profile:

 

 

 

Leave a Reply

Your email address will not be published.

one × 1 =