# PHP error when deploy, after update to WP 4.6

**URL:** https://discourse.roots.io/t/php-error-when-deploy-after-update-to-wp-4-6/7458
**Category:** trellis
**Created:** 2016-08-22T11:15:54Z
**Posts:** 11
**Showing post:** 5 of 11

## Post 5 by @k1sul1 — 2016-08-23T08:10:20Z

I believe this is a wp-cli issue.

I’m going to manually SSH into the instance and update wp-cli to the latest version. I’ll update if it helps.

**It did.**

I’ve root access disabled, so I used `ssh admin@site.com` to login to the instance. Running `wp cli update` fails with `Error: /usr/bin/wp is not writable by current user`, but you can overcome that with `sudo wp cli update --allow-root`.

Enter your sudo password (the default is here: [https://roots.io/trellis/docs/vault/](https://roots.io/trellis/docs/vault/)), and just say yes when it asks you to.

After that the deploy worked just fine.

---

_[View the full topic](https://discourse.roots.io/t/php-error-when-deploy-after-update-to-wp-4-6/7458)._
