Install a Basic WordPress Site with WP-CLI
-
@scottalanmiller said in Install a Basic WordPress Site with WP-CLI:
In my example I am using CentOS, RHEL or Fedora. But the idea is the same regardless. Now we need to download the WordPress files.
wp core download
Do you run this command as root? It gives a warning about that.
-
@tim_g said in Install a Basic WordPress Site with WP-CLI:
@scottalanmiller said in Install a Basic WordPress Site with WP-CLI:
In my example I am using CentOS, RHEL or Fedora. But the idea is the same regardless. Now we need to download the WordPress files.
wp core download
Do you run this command as root? It gives a warning about that.
Probably have to run
sudo -u apache wp core download
. -
@tim_g said in Install a Basic WordPress Site with WP-CLI:
@scottalanmiller said in Install a Basic WordPress Site with WP-CLI:
In my example I am using CentOS, RHEL or Fedora. But the idea is the same regardless. Now we need to download the WordPress files.
wp core download
Do you run this command as root? It gives a warning about that.
As the Apache user.
-
I know that manually installing it I can tell it if I want it to run as a subdomain or a subfolder (blog.domain.com or domain.com/blog). If I want to use the subfolder method, is it as simple as changing this section?
wp core install --url=mysite.com/blog
-
-
@nashbrydges said in Install a Basic WordPress Site with WP-CLI:
I know that manually installing it I can tell it if I want it to run as a subdomain or a subfolder (blog.domain.com or domain.com/blog). If I want to use the subfolder method, is it as simple as changing this section?
wp core install --url=mysite.com/blog
Yes,
yoursite.com/path/to/wordpress
. You need to anyways or it won't work correctly. -
Now getting a too many redirects error. I entered https://domain.com/blog as a URL.
-
@nashbrydges said in Install a Basic WordPress Site with WP-CLI:
Now getting a too many redirects error. I entered https://domain.com/blog as a URL.
Try clearing your browser cache
-
It allows me access when I set it up without https in the url. But once in settings, and I change the blog address from http://domain.com/blog to https://domain.com/blog I get the same too many redirects error. Cleared history and cache 3 times and still same issue.
I'm going to blow this install away and recover from backup and will have to install manually.
Still can't figure out why this issue. The root domain works perfectly with Let's Encrypt but as soon as I get to the blog folder it just shits all over itself.
-
It's loading but had to allow unsafe script for the blog to load. Gotta go digging around for that now.
-
@nashbrydges said in Install a Basic WordPress Site with WP-CLI:
It allows me access when I set it up without https in the url. But once in settings, and I change the blog address from http://domain.com/blog to https://domain.com/blog I get the same too many redirects error. Cleared history and cache 3 times and still same issue.
I'm going to blow this install away and recover from backup and will have to install manually.
Still can't figure out why this issue. The root domain works perfectly with Let's Encrypt but as soon as I get to the blog folder it just shits all over itself.
How did you set up the whole thing? Did you use my guide? It includes the SSL set up.
-
@tim_g said in Install a Basic WordPress Site with WP-CLI:
@nashbrydges said in Install a Basic WordPress Site with WP-CLI:
It allows me access when I set it up without https in the url. But once in settings, and I change the blog address from http://domain.com/blog to https://domain.com/blog I get the same too many redirects error. Cleared history and cache 3 times and still same issue.
I'm going to blow this install away and recover from backup and will have to install manually.
Still can't figure out why this issue. The root domain works perfectly with Let's Encrypt but as soon as I get to the blog folder it just shits all over itself.
How did you set up the whole thing? Did you use my guide? It includes the SSL set up.
I used your guide up to the SSL setup. I'm running a website in the root directory and Nginx as a proxy.