• Resolved Rebel21

    (@rebel21)


    Hello

    I have a limited ssh accesses to my webserver. wp-cli run fine, but I can’t install any package (or auto-update).

    Can I install a wp-cli package manualy ?
    (I have access to the .wp-cli folder)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I have a limited ssh accesses to my webserver. wp-cli run fine, but I can’t install any package (or auto-update).

    Can you set your path to put ~/.wp-cli into your .profile or .bash_profile first?

    If so then install the wp command there and make the .wp_cli first in your path.

    Thread Starter Rebel21

    (@rebel21)

    Thanks for your answer Jan.

    The problem is that I can’t download with ssh:

    Error: The “https://wp-cli.org/package-index/packages.json” file could not be downloaded: failed to open stream: Connection refused

    I was hoping I could upload some php files in ~/.wp-cli/packages

    • This reply was modified 6 years, 6 months ago by Rebel21.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Ponders*

    Have you considered downloading the packages you want to your PC or Mac and then using file management tools to transfer those packages to your host?

    Thread Starter Rebel21

    (@rebel21)

    Have you considered downloading the packages you want to your PC or Mac and then using file management tools to transfer those packages to your host?

    I don’t know where and what upload ??

    I finally succeeded with a php script instaLL_package.php:

    
    <?php
    
    putenv('PATH=/usr/local/php7.1/bin:/homez.65/domain/.wp-cli:/homez.65/domain/opt/bin:/usr/local/bin:/usr/bin:/bin');
    putenv('COMPOSER_HOME=/homez.65/domain/opt/bin/composer');
    putenv('WP_CLI_PACKAGES_DIR=/homez.65/domain/.wp-cli/packages');
    
    $install = shell_exec('wp package install trepmal/wp-revisions-cli 2>&1');
    echo "<pre>$install</pre>";
    ?>
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to install a wp-cli package manualy ?’ is closed to new replies.