Score:0

Download wordpress core using bash script

in flag

Im trying to use bash script to download wordpress core in a specific directory, what I did is this:

#!/bin/bash

wp core download /var/www/public_html/

But Im getting this error:

Error: Failed to get url '/var/www/design-press.site/': Only HTTP(S) requests are handled..

Any ideas?

Score:1
in flag

There is no need to specify the directory when using the WordPress CLI. Instead you go to the directory where the core is to be copied:

cd /var/www/public_html
sudo -u www-data wp core download

Using sudo -u www-data ensures the files are copied with the correct ownership.

From there, you can begin your WordPress installation.

Iosef avatar
in flag
That wouldnt work because the bash script where Im running the code is in in a different directory than the one where I want to download wordpress, therefore I need to specify the directory
in flag
You will want to download the `.tar.gz` and control the entire process, then
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.