The readme and comments mention both phar and composer install options for wp-cli.

However hosting_wpplatform/drush/install.wordpress.provision.inc tries to include wp-cli.php which would only work with composer based installs.

What would be the recommended install method for composer?

mkdir ~/lib/
cd lib/
composer create-project wp-cli/wp-cli --prefer-source

Comments

helmo created an issue. See original summary.

libre’s picture

StatusFileSize
new15.29 KB
new22.41 KB

Hi,

nice job,
This is a great initiative, do you think it will be possible to exploit WP Aegir Webpack or in cluster mode?

Procedure on page github and Drupal install wp-cli not work.
https://github.com/mlutfy/hosting_wordpress/blob/7.x-3.x/README.md

Your solution is work for me.
Only adjust content folder for Aegir.

aegir@hostmaster:~/.composer/vendor$ cd ..
aegir@hostmaster:~/.composer$ cd ..
aegir@hostmaster:~$ ls -la
total 144
drwxr-xr-x 16 aegir aegir  4096 nov  4 22:14 .
drwxr-xr-x 14 root  root   4096 oct 27 14:13 ..
drwx------  2 aegir aegir  4096 nov  4 22:13 backups
-rw-------  1 aegir aegir  3969 nov  4 22:11 .bash_history
-rw-r--r--  1 aegir aegir    47 nov  4 15:43 .bashrc
drwxr-xr-x  2 aegir aegir  4096 nov  4 16:36 bin
drwx------  3 aegir aegir  4096 oct 27 15:19 .cache
drwx--x--x  3 aegir aegir  4096 oct 27 14:15 clients
drwxr-xr-x  4 aegir aegir  4096 nov  4 22:12 .composer
drwx--x--x  5 aegir aegir  4096 oct 27 14:15 config
drwx------  3 aegir aegir  4096 oct 27 15:19 .config
drwxr-xr-x  3 aegir aegir  4096 nov  4 22:22 .drush
-rw-r--r--  1 aegir aegir 50976 oct 13 17:04 hosting_wordpress-7.x-3.8.tar.gz
drwxr-xr-x 10 aegir aegir  4096 oct 27 14:50 hostmaster-7.x-3.7
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:10 lib
drwx------  3 aegir aegir  4096 oct 27 15:19 .local
drwxr-xr-x 15 aegir aegir  4096 nov  4 16:52 platforms
-rw-r--r--  1 aegir aegir   675 nov  4 15:56 .profile
-rw-r--r--  1 aegir aegir    75 oct 28 12:19 .selected_editor
-rw-------  1 aegir aegir  9445 nov  4 22:14 .viminfo
drwxr-xr-x  3 aegir aegir  4096 nov  4 15:44 .wp-cli
drwxr-xr-x 11 aegir aegir  4096 nov  4 22:17 wp-cli
aegir@hostmaster:~$ ls -la .composer/
total 20
drwxr-xr-x  4 aegir aegir 4096 nov  4 22:12 .
drwxr-xr-x 16 aegir aegir 4096 nov  4 22:14 ..
drwxr-xr-x  4 aegir aegir 4096 nov  4 22:12 cache
-rw-r--r--  1 aegir aegir   13 nov  4 22:12 .htaccess
drwxr-xr-x 13 aegir aegir 4096 nov  4 22:19 vendor
aegir@hostmaster:~$ ls -la .composer/
cache/     .htaccess  vendor/
aegir@hostmaster:~$ ls -la .composer/vendor/
total 180
drwxr-xr-x 13 aegir aegir  4096 nov  4 22:19 .
drwxr-xr-x  4 aegir aegir  4096 nov  4 22:12 ..
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:12 bin
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:12 ci
-rw-r--r--  1 aegir aegir  1044 nov  4 22:12 composer.json
-rw-r--r--  1 aegir aegir 66319 nov  4 22:12 composer.lock
-rw-r--r--  1 aegir aegir  4136 nov  4 22:12 CONTRIBUTING.md
-rw-r--r--  1 aegir aegir   446 nov  4 22:12 .editorconfig
drwxr-xr-x  5 aegir aegir  4096 nov  4 22:12 features
-rw-r--r--  1 aegir aegir    74 nov  4 22:12 .gitattributes
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:12 .github
-rw-r--r--  1 aegir aegir    81 nov  4 22:12 .gitignore
-rw-r--r--  1 aegir aegir  1440 nov  4 22:12 LICENSE.txt
-rw-r--r--  1 aegir aegir  7584 nov  4 22:12 .mailmap
drwxr-xr-x 11 aegir aegir  4096 nov  4 16:46 oldversion_wp-cli
drwxr-xr-x  5 aegir aegir  4096 nov  4 22:12 php
-rw-r--r--  1 aegir aegir   253 nov  4 22:12 phpunit.xml.dist
-rw-r--r--  1 aegir aegir  9976 nov  4 22:12 README.md
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:12 templates
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:12 tests
-rw-r--r--  1 aegir aegir   647 nov  4 22:12 .travis.yml
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:12 utils
drwxr-xr-x 16 aegir aegir  4096 nov  4 22:13 vendor
-rw-r--r--  1 aegir aegir     7 nov  4 22:12 VERSION
drwxr-xr-x  2 aegir aegir  4096 nov  4 22:17 wp-cli

In final log from Aegir.

WordPress: finished drush_provision_wordpress_install	
Returned from hook drush_provision_wordpress_install	
Displaying Druplicon for "provision-wordpress-install" command.	
Command dispatch complete	
Returned from hook drush_hosting_task	
Displaying Druplicon for "hosting-task" command.	
Calling hook drush_hosting_post_hosting_task	
Invoking post_hosting_wordpress_install_task hooks.	
Returned from hook drush_hosting_post_hosting_task	
Command dispatch complete	
Updated task status to "Successful"
aegir@hostmaster:~$ cat .bashrc
export PATH="$PATH:$HOME/.composer/vendor/bin"

For your information, installation, verification, Deactivation, activation and the Deletion of a site on a platform working properly. For cons, the backup part is not working ... I will open bug report for this part.

Best regards,

wp_hosting_screen