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

WP Install not redirecting to htdocs #28

Closed chris-craig closed 9 years ago

chris-craig commented 9 years ago

This may be a silly question but its causing me some difficulties. Ive installed vvv-site wizard, everything seems to be running ok and i can run through the wp installation process easily with no errors. My problem is when i visit the domain that is generated by vvv - site wizard it takes me to the "Index of" screen, as if theres no index.php file inside the directory. All the Wordpress files have been downloaded, database has been created and the wp-cli.yml file is pointing to "path: htdocs". May be Im installing the wizard wrong.

Currently its in my vagrant root directory but i have also tried placing it inside my bin directory, as a colleague suggested it may help, but no joy.

Any help would be greatly appreciated.

qbattersby commented 9 years ago

I am quite sure I am having the same issue. I run the wizard which completes successfully but it throws errors and does not move the Wordpress files into the htdocs folder or generate a wp-config. DB gets setup. I just find I than have to go download Wordpress into the folder and modify the DB details and salt.

Any love on this? Can test on new wizard run and provide errors if needed. Running most recent version of VVV.

chris-craig commented 9 years ago

Yeah it was definitely an issue on my machine, there was something up with my DNS server, I renewed my DHCP lease and it worked fine. It may be a permissions problem on your machine, i installed it on my mac at home and it wouldn't work when i ran chmod +x vvv to make it executable, i had to run chmod u+x vvv and it worked fine. I do usually get couple of errors the main one bring " warning: expected SRV RR, found RR type 1" but it still works fine for me now.

qbattersby commented 9 years ago

Hey,

Here is specifically there error I am getting when creating a new site, always have to move a WP install over to the new folder and modify the wp-config.

==> default: PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'phar tar error: "/home/vagrant/.wp-cli/cache/core/en_US-4.0.tar.gz" already exists as a regular phar and must be deleted from disk prior to creating as a tar-based phar' in /srv/www/wp-cli/php/commands/core.php:181 ==> default: Stack trace: ==> default: #0 /srv/www/wp-cli/php/commands/core.php(181): PharData->__construct('/home/vagrant/....') ==> default: #1 /srv/www/wp-cli/php/commands/core.php(154): Core_Command::_extract('/home/vagrant/....', '/srv/www/tester...') ==> default: #2 [internal function]: Core_Command->download(Array, Array) ==> default: #3 /srv/www/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(52): call_user_func(Array, Array, Array) ==> default: #4 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}(Array, Array) ==> default: #5 /srv/www/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(293): call_user_func(Object(Closure), Array, Array) ==> default: #6 /srv/www/wp-cli/php/WP_CLI/Runner.php(304): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array) ==> default: #7 /srv/www/wp-cli/php/WP_CLI/Runner.php(311): WP_CLI\Ru in /srv/www/wp-cli/php/commands/core.php on line 181 ==> default: Error: This does not seem to be a WordPress install. ==> default: Pass --path=path/to/wordpress or run wp core download. ==> default: Error: This does not seem to be a WordPress install. ==> default: Pass --path=path/to/wordpress or run wp core download.