Author Topic: Laravel hosted user unable to send mail from ssh using php artisan  (Read 912 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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 ..

Offline
****
Re: Laravel hosted user unable to send mail from ssh using php artisan
« Reply #1 on: February 09, 2023, 04:05:05 AM »
Depending on your configuration, you may need to call PHP by its full path. Are you using PHP-FPM?
Code: [Select]
/opt/alt/php-fpm81/usr/bin/php