wp-cli / builds

Phar, Debian, and RPM builds of WP-CLI
36 stars 18 forks source link

not a .deb package #39

Closed mitchellkrogza closed 8 years ago

mitchellkrogza commented 8 years ago

Hi there, what's up with this ???

$ sudo dpkg -i php-wpcli_0.24.0_all.deb

dpkg-deb: error: 'php-wpcli_0.24.0_all.deb' is not a debian format archive dpkg: error processing archive php-wpcli_0.24.0_all.deb (--install): subprocess dpkg-deb --control returned error exit status 2 Errors were encountered while processing: php-wpcli_0.24.0_all.deb

Installation instructions not making sense at all, installed it via your recommended method but then any attempt to run it warns me " YIKES! It looks like you're running this as root" ... but if I do not run it as root then it complains about permission problems.

No way to switch to become the www-data user because that account by default does not allow any login. I can run it under my admin user account but of course I am admin and therefore root so once again "YIKES! It looks like you're running this as root".

mitchellkrogza commented 8 years ago

Never mind please close, seem to have solved this by running command line as:

sudo -u www-data -- wp vp clone --name=staging

Then it does not generate the error anymore. Maybe just note on your install notes that the .deb package cannot be installed under command line.

I found the fix to my problem here: https://github.com/wp-cli/wp-cli/issues/2098