Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Nexcloud : missing php cli ? #32

Closed
zerpex opened this issue Aug 31, 2016 · 2 comments
Closed

Nexcloud : missing php cli ? #32

zerpex opened this issue Aug 31, 2016 · 2 comments

Comments

@zerpex
Copy link

zerpex commented Aug 31, 2016

Hi there,

While looking to use occ commands (specificaly to force a full scan), I was unable to find php cli :

# docker exec -it nextcloud sh
/ # cd /nextcloud/
/nextcloud # su - nextcloud
06fc87f8772b:~$ /nextcloud/occ files:scan --all
env: can't execute 'php': No such file or directory
06fc87f8772b~$ php -v
sh: php: not found

(no more success in root)

Is there an other way to do it ?
I no, can you include php cli on the container ?

Note : by default /nexcloud/oss is not executable.

Regards,
zer.

@zerpex zerpex changed the title missing php cli ? Nexcloud : missing php cli ? Aug 31, 2016
@zerpex
Copy link
Author

zerpex commented Aug 31, 2016

Nevermind, github noob user there, didn't saw the "closed" section.

using php7 instead of php is working:

06fc87f8772b:~$ php7 /nextcloud/occ files:scan --all

Thanks

@zerpex zerpex closed this as completed Aug 31, 2016
@Wonderfall
Copy link
Owner

Wonderfall commented Aug 31, 2016

No problem, and there's an occ shortcut now. :)
a5061c8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants