New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Laravel hosted user unable to send mail from ssh using php artisan

Started by cloud, February 08, 2023, 08:16:45 PM

Previous topic - Next topic

cloud

Hi,

One of my hosting user was unable to execute a command line in laravel through ssh.

command : php artisan make:mail TestEmail

while executing it getting this error message. " bash: php: command not found "

I have searched every where but didn't know how to resolve it ..

overseer

Depending on your configuration, you may need to call PHP by its full path. Are you using PHP-FPM?
/opt/alt/php-fpm81/usr/bin/php