alexc7018 / vvv-site-wizard

Automates setting up new WordPress sites in Varying Vagrant Vagrants
GNU General Public License v2.0
346 stars 47 forks source link

403 Forbidden #40

Open jeanmichelcote opened 9 years ago

jeanmichelcote commented 9 years ago

Just used your script, that looks perfect for what i want to do, but nginx threw a "403 Forbidden" when i typed the address.dev in the address bar.

Any idea why?

ubuntu trusty64 box vagrant 1.7.2 wordpress 4.1.1

jeanmichelcote commented 9 years ago

Looks like it didnt even installed any directory inside the new folder. It only installed 3 files: vvv-host vvv-init.sh wp-cli.yml

Had to run vvv-init.sh by hand and returned:

Creating database 'myDb' (if it does not exist)... Warning: Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Warning: Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Installing WordPress 4.1.1 in mysite/htdocs... vvv-init.sh: line 10: wp: command not found vvv-init.sh: line 11: wp: command not found vvv-init.sh: line 15: wp: command not found

Now i'm stuck. The 'wp' command in the script doesnt run.

rtpHarry commented 9 years ago

The first time I used this script I ran the ./vvv from its own directory and I used a relative path to the main vvv install. It didn't show me any errors but I got half finished installation. Don't recall if it was exactly a 403 or what but try

  1. Copying the vvv bash script into your main vvv install folder and running it from there

or

  1. Running the vvv site wizard script from its own folder and giving the full path from root upwards when it asks for the install directory.

The location the vvv should go is in the top level vvv folder, with the vagrantfile, www dir, database dir, etc.

bradp commented 9 years ago

I'd suggest checking out VV. Should fit your needs perfectly.