Answers.Body: <p>That error was due to the php version not being specified when I had executed the command. I've tried running it with the specified path to the current php version and it seemed to work.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-06T11:29:19.590Z
Answers.LastActivityDate: 2019-03-06T11:29:19.590Z
Answers.UserDisplayName: Dan Lee
Body: <p>I'm trying to deploy our Craft 3 site on an Apache server. When running <code>composer install</code> I get the following error.</p>
  
  <blockquote>
    <p>@php nys-setup update
    Script @php nys-setup update handling the post-install-cmd event returned with error code 255</p>
  </blockquote>
  
  <p>Does anyone know what the reason could be or where I could get more detail on the error?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-05T12:33:02.763Z
Comments.Text: Check your `storage/logs/console.log` for details. I think there is a semver conflict in my scaffoloding
Comments.UserDisplayName: andrew.welch
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-05T14:50:17.337Z
Comments.Text: That error was due to the php version not being specified when I had executed the command. I've tried running it with the specified path to the current php version and it seemed to work.
Comments.UserDisplayName: Dan Lee
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-06T03:08:34.823Z
Comments.Text: @DanLee can you add that as an official answer?
Comments.UserDisplayName: Brad Bell
Tags: <craft3><deployment>
Title: Deploying Craft on Apache Server - Error code 255
ThreadText: # Deploying Craft on Apache Server - Error code 255
  
  (Asked by: username_0 on 2019-03-05)
  
  I'm trying to deploy our Craft 3 site on an Apache server. When running `composer install` I get the following error.
  
  > @php nys-setup update
  > Script @php nys-setup update handling the post-install-cmd event returned with error code 255
  
  Does anyone know what the reason could be or where I could get more detail on the error?
  
  **Tags:** craft3, deployment
  
  > **Comments:**
  > **username_1**: Check your `storage/logs/console.log` for details. I think there is a semver conflict in my scaffoloding  
  > **username_0**: That error was due to the php version not being specified when I had executed the command. I've tried running it with the specified path to the current php version and it seemed to work.  
  > **username_2**: @username_0 can you add that as an official answer?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-03-06. Score: 1
  
  That error was due to the php version not being specified when I had executed the command. I've tried running it with the specified path to the current php version and it seemed to work.
  
  
  ---
  
  