bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 90 forks source link

"Installation" not running / User not being created #338

Closed breadadams closed 7 years ago

breadadams commented 7 years ago

So, after running the vv create process, I see:

[Success] New VVV Site Setup: Done!
Directory: /Users/username/Dropbox/web/dev/vagrant-local/www/test
URL:       test.dev
Username:  admin
Password:  password

However if I go to test.dev, I see the typical WP installation screen:

image

If I just complete the installation process (enter admin/password for credentials, etc.) it works fine. Just a bit of an inconvenience when whipping up a few sites daily.

Any ideas?

colbyhub commented 7 years ago

@breadadams I've seen others have this same issue, happens to me too. Just vagrant ssh into the box, navigate to the newly created directory, and run sudo sh vvv-init.sh and it should automagically create the wp-config.php file.

Bit of a pain, but works for now.

breadadams commented 7 years ago

Thanks @ColeHub. Just gave that a try but after vagrant ssh, I couldn't find the site directories 😬. Could you give some more detailed steps?

Super thnx

colbyhub commented 7 years ago

@breadadams after you vv-create a directory (for example yours was test), you'll want to run vagrant ssh and then immediately run cd /vagrant/www/<your directory> or in your case cd /vagrant/www/test. In that directory you'll find the vvv-init.sh file that you'll want to execute.

Just remember that when you vagrant ssh into the VM, the VM's root /vagrant folder is a shared folder between the VM and your host machine, being the folder that contains your Vagrantfile.

You can't execute the vvv-init.sh from your host machine because it relies on many things like wp-cli, as well as the SQL databases that all live on the VM, not the host machine.

Hope that helps a bit 🍻

breadadams commented 7 years ago

Awesome! Thanks. The reason I couldn't find my vagrant folder was because after vagrant ssh It placed me in the /home/vagrant/ folder, rather than /vagrant/.

After navigating to correct folder, I found the vvv-init.sh file, but after running, I see no change. ~Does vagrant need to be halted maybe?~ 🤦‍♂️ of course you can't vagrant ssh then...

colbyhub commented 7 years ago

@breadadams make sure you run the vvv-init.sh with sudo and you should now have an htdocs/ folder in that same directory that now contains a WP install, given that there were no errors thrown. Make sure your hostnames are set up properly too, vagrant-hostsupdater works well.

breadadams commented 7 years ago

Ahhh, this creates the htdocs folder!

That part works fine for me. The problem is that after the setup has finished in terminal (when it shows the URL, user & password), if I visit the URL, I see the installation screen. Select language, and then I have to enter a site title, and user info myself.

bradp commented 7 years ago

Closing this, I'm going to start tracking 2.0 support in https://github.com/bradp/vv/issues/348.