If you encounter Errno 13: Permission Denied
, this typically indicates a missing executable permission on the file or script.
For Example:
$ drush @mysitegroup.dev
status Warning: pcntl_exec(): Error has occurred: (errno 13) Permission denied in /usr/local/drush8/vendor/drush/drush/includes/startup.inc on line 422
Error has occurred executing the Drush script found at /mnt/www/html/mysitegroupdev/vendor/bin/drush
(errno 13) Permission denied
This error tends to be more prevalent in Windows.
Executable permission
Check the permissions of the file to confirm it is executable. If it's not executable, you will need to modify the file in your repository, add executable privilege to the file, then commit and push to the cloud.
chmod a+x ./drush
git add ./drush
git commit -m 'Add execute bit to drush'
git push
git update-index --chmod=+x ./drush
git commit -m 'Add execute bit to drush (Windows)'
git push
If you are on Windows, use the above git update-index
command as Windows does not support Unix-style file permissions natively.
Verify the file is executable in your repository. After updating the permission, commit and push the changes to the cloud.
If Drush is missing from composer.json, see the following option to fix this, do all these steps in your local machine:
composer config vendor-dir vendor
composer require drush/drush
vendor/bin
still does not contain the Drush, you can try regenerating the entire vendor directory again:
rm -rf vendor
composer install
composer.json
and correctly installed.If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 22 2025 08:59:29 GMT+0000 (Coordinated Universal Time)