Of course enable it, but also make sure you have the correct version of PHP for the version laravel you use.
Unable to find the wrapper PLEASE HELP!!
i used filezilla to deploy my project. i got this error trying to make a post request
ErrorException: fopen(): Unable to find the wrapper "sftp" - did you forget to enable it when you configured PHP? in file /var/www/html/app/Http/Controllers/ApiController.php on line 117
line in my in my .envfile. i'am refrerring the keys in my public/ssh directory.
SSH_SOURCE_FILE="sftp://ubuntu@MyUrl/var/www/html/public/ssh/test.xml"
SSH_PUBLIC_KEY= "sftp://ubuntu@MyUrl/var/www/html/public/ssh/id_rsa.pub" SSH_PRIVATE_KEY= "sftp://ubuntu@MyUrl/var/www/html/public/ssh/id_rsa"
here is the line in my apicontroller
//opening source file, replacing it with $result $file = fopen(env('SSH_SOURCE_FILE'), 'w+'); fwrite($file, $result); fclose($file);
It worked on the localhost. but maybe my filezilla path is not correct in my .env please help me
Please or to participate in this conversation.