wp-cli is working to the best of my knowledge — was installed fresh for another project circa yesterday, and seems fine. also, presumably, when being run from inside the vm, I’d assume that wp-cli is using a copy installed on the vm itself, not my local copy. It’s perplexing.
I’m going to guess that wp-cli commands run from the host are failing due to some kind of pathing error, but I can’t find any clarity on how to resolve that — particularly since with bedrock I’m still pretty unclear where wp-cli would even find the db information to connect properly, since that’s been abstracted out of wp-config
where would I find the log in question? I watched the vagrant up run each time and didn’t witness any explosions, but the log might show something different?
I’m now officially certain that the password IS being setup correctly —but then getting booted out immediately after login, and sent back to the login screen.
Just tested with an incorrect password, and I get a password error. Tested with the pass configured in group_vars/development, on the other hand, and finally realized that it fails back to the login screen silently — no login error.
Thankfully, I seem to have been able to make a bit of progress here, and did manage to get a multisite bedrock-ansible + bedrock installation running, and accepting login credentials. phew. Not really sure what did the trick, however, unless there’s some inherent issue with using example.dev verbatim — switching to a distinct url across the board, coupled with the steps articulated at the multisite wiki entry linked above plus god knows what else seemed to work in the end.
Still wrestling with the wp-cli stuff however. I’ll break the WP-CLI issue and some other questions I’ve got into separate discussions.
Just my two cents because I stumbled on this post having quite a similar issue yesterday.
When trying to access example.dev/wp-admin, I was redirected to /wp/wp-login.php and after logging in, I was presented with the login page with the same URL as you with no message : http://example.dev/wp/wp-login.php?redirect_to=http%3A%2F%2Fexample.dev%2Fwp-admin%2F&reauth=1
What I finally did was trying to access /wp/wp-admin instead of /wp-admin, which worked.
I hope you’re in the same case !
For more informations (if this happens to be the same issue), I don’t think I encountered the issue installing bedrock-ansible on my mac but did on windows.
I’m truly sorry if I didn’t grasp the right topic of this thread or misused discourse in any way.
To clarify, I wasn’t asking anything, I was trying to help @timichango with his login error.
I noticed that the “redirect_to” attribute in the URL he provided was to “/wp-admin”, not “/wp/wp-admin”, which redirects to /wp/wp-login with no user feedback which is what he seemed to experience.
Given your answer, I probably misunderstood the issue at stake here and I apologise once again for interfering.
Or you can bypass all that which is what I normally do before provisioning and go into trellis/roles/nginx/templates and edit wordpress.conf switching out
Then your multisite functions just like it wasn’t set up in a subfolder and it drops all instances of the /wp/ out of all your links, you can go right in between network admin and sites, I used to have to manually go in and add /wp/ into the database because it would never get confirmed right for multisite, and I would get white screens in between network and site admin areas.
Just for reference my code snippet came from
I have been using it for months on multisites live and in development never a problem. Any reason you guys don’t use something like this standard? Makes it seem much more fluid in my opinion for users and admins
Oh and for the WP-CLI errors you just need to pass --url=example.dev at the end of your command, for multisite it doesn’t know what site it is supposed to be targeting so you just tell it the root domain, then commands work as expected
Also I have found I need to be in the /web/ folder with the wp-config file, even though there is a wp-cli config file telling it where your wp-config file is, this only happens to me sometimes, 90% for the time now if it has to do with the database I just jump into mysql -u root -p and just do what I need to do because wp-cli and multisite I do not think is perfect by any means