mardi 15 mars 2016

Laravel5 cashier downloadInvoice() permission denied error

Unable to download pdf generated with laravel 5 cashier and phantomjs. Throws following error:

ProcessFailedException in Process.php line 233: The command "/PROJECT/vendor/laravel/cashier/src/Laravel/Cashier/bin/linux-x86_64/phantomjs invoice.js /PROJECT/storage/framework/48dc273eaff3a0adaab8aa4f5b1d73df.pdf" failed.
Exit Code: 126(Invoked command cannot execute)

Output:
================


Error Output:
================
sh: 1: /PROJECT/vendor/laravel/cashier/src/Laravel/Cashier/bin/linux-x86_64/phantomjs: Permission denied

I checked storage/framework/ directory pdf has been created with permission 644 and www-data

Can anyone help me to get rid of this error?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire