<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>

CC BY-SA 4.0
2019-03-06T11:29:19.590Z
2019-03-06T11:29:19.590Z
Dan Lee
<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>

CC BY-SA 4.0
2019-03-05T12:33:02.763Z
Check your `storage/logs/console.log` for details. I think there is a semver conflict in my scaffoloding
andrew.welch
CC BY-SA 4.0
2019-03-05T14:50:17.337Z
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.
Dan Lee
CC BY-SA 4.0
2019-03-06T03:08:34.823Z
@DanLee can you add that as an official answer?
Brad Bell
<craft3><deployment>
Deploying Craft on Apache Server - Error code 255
# 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**: @DanLee 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.


---

