# Kirby CLI PHP warning

**URL:** <https://forum.getkirby.com/t/kirby-cli-php-warning/8733>\
**Category:** Questions\
**Tags:** v2\
**Created:** [October 8, 2017, 3:24pm UTC](https://forum.getkirby.com/t/kirby-cli-php-warning/8733 "2017-10-08T15:24:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [October 8, 2017, 3:24pm UTC](https://forum.getkirby.com/t/kirby-cli-php-warning/8733/1 "2017-10-08T15:24:44Z")

</div>

I finally got around to making use of Kirby CLI. However when running `kirby install:panel` and kirby `install:core`, i get PHP warnings about the attempts to rename and move files. I get operation not permitted errors and cross device errors. I guess the first issue is permissions related and i think the cross device is something to do with having my code on a second harddrive, not the system and its failing to copy from one volume to the other. This is running on OSX running PHP 7.1.8 which i think was installed via homebrew.

How do i fix this?

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [October 10, 2017, 5:17pm UTC](https://forum.getkirby.com/t/kirby-cli-php-warning/8733/2 "2017-10-10T17:17:40Z")

</div>

Anyone else run into this issue?

---

<div class="post-metadata">

**Author:** ![lukehatfield](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukehatfield/32/386_2.png) [@lukehatfield](https://forum.getkirby.com/u/lukehatfield)\
**Post date:** [November 20, 2017, 7:08pm UTC](https://forum.getkirby.com/t/kirby-cli-php-warning/8733/3 "2017-11-20T19:08:24Z")

</div>

I recently reconfigured composer and kirby to run globally on my server and ran into this issue for the first time. Don’t know if it’s related to my recent changes or not.

When I run…  
`kirby install:core`

I get…  
`PHP Warning: rename(): The first argument to copy() function cannot be a directory in ...`

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [November 20, 2017, 7:12pm UTC](https://forum.getkirby.com/t/kirby-cli-php-warning/8733/4 "2017-11-20T19:12:43Z")

</div>

Glad its not just me!

I think theres a potential solution in this thread [Kirby CLI: Can't create kirby installations](https://forum.getkirby.com/t/kirby-cli-cant-create-kirby-installations/6357/5)

I havent tried it myself

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:30pm UTC](https://forum.getkirby.com/t/kirby-cli-php-warning/8733/5 "2025-02-06T17:30:28Z")

</div>


