Answers.Body: <p>Turns out this was a problem with running the right version of PHP. I was able to fix the issue by changing my command from <code>php</code> to <code>php74</code>, directly specifying the version of PHP that I want to run. This should work with <code>php71</code> <code>php73</code> and future versions like <code>php80</code> too.</p>
  <p>Here's what my commands look like now:</p>
  <pre><code>php74 craft migrate/all
  php74 craft project-config/sync
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T14:44:10.240Z
Answers.LastActivityDate: 2020-06-26T14:44:10.240Z
Answers.UserDisplayName: Jake Dohm
Body: <p>I'm trying to run a few of Craft's console commands on a Webfaction server to automate running Craft migrations and resolving Project Config changes, and it's throwing an error.</p>
  <p>Here's what I'm doing:</p>
  <pre><code>php craft migrate/all
  php craft project-config/sync
  </code></pre>
  
Tags: <console><commands>
Title: Running Craft Console Commands on Webfaction
ThreadText: # Running Craft Console Commands on Webfaction
  
  (Asked by: username_0 on 2020-06-26)
  
  I'm trying to run a few of Craft's console commands on a Webfaction server to automate running Craft migrations and resolving Project Config changes, and it's throwing an error.
  
  Here's what I'm doing:
  
  ```
  php craft migrate/all
  php craft project-config/sync
  
  ```
  
  **Tags:** console, commands
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-06-26. Score: 2
  
  Turns out this was a problem with running the right version of PHP. I was able to fix the issue by changing my command from `php` to `php74`, directly specifying the version of PHP that I want to run. This should work with `php71` `php73` and future versions like `php80` too.
  
  Here's what my commands look like now:
  
  ```
  php74 craft migrate/all
  php74 craft project-config/sync
  
  ```
  
  
  ---
  
  