I changed the files and folder permissions with the following commands.
find . -type f -print0 | xargs -0 chmod 0644 find . -type d -print0 | xargs -0 chmod 0755
I can't run Drush commands anymore, unless I change file permissions back to 777. When I run
drush cr, for example, I get this error.
PHP Warning: pcntl_exec(): Error has occurred: (errno 13) Permission denied in /usr/local/bin/drush-8/vendor/drush/drush/includes/startup.inc on line 415
Error has occurred executing the Drush script found at /data/websites/virtualmax.ca/public_html/vendor/drush/drush/drush (errno 13) Permission denied
Is there a certain permission required to run Drush commands?