Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: cloud on February 08, 2023, 08:16:45 PM

Title: Laravel hosted user unable to send mail from ssh using php artisan
Post by: cloud on February 08, 2023, 08:16:45 PM
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 ..
(https://img001.prntscr.com/file/img001/UzvOmPjzR7mExHJSCWIxrQ.png)
Title: Re: Laravel hosted user unable to send mail from ssh using php artisan
Post by: overseer 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