alexc7018 / vvv-site-wizard

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

permission problem with wp-cli mkdir() #18

Open robwilde opened 9 years ago

robwilde commented 9 years ago

I have VVV working with hyper-v on windows 8.1 very well and I love the vvv-site-wizard, just have small issue with the setup that I need help with.

Its not copying WordPress into the htdocs folder and appears to be some permissions problem. Here is the errors I see.

==> default: http://gruntjs.com/getting-started
==> default: PHPMyAdmin already installed.
==> default: Creating database 'dha' (if it does not exist)...
==> default: Installing WordPress 3.9.1 in dha/htdocs...
==> default: Downloading WordPress 3.9.1 (en_US)...
==> default: Using cached file '/home/vagrant/.wp-cli/cache/core/en_US-3.9.1.tar.gz'...
==> default: PHP Warning:  mkdir(): Permission denied in /srv/www/wp-cli/php/commands/core.php on line 116
==> default: PHP Warning:  mkdir(): No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 116
==> default: PHP Warning:  mkdir(): No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 116
==> default: PHP Warning:  mkdir(): No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 116
==> default: PHP Warning:  copy(/srv/www/dha/htdocs//wp-content/plugins/akismet/_inc/akismet.js): failed to open stream: No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 119
==> default: PHP Warning:  mkdir(): No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 116
==> default: PHP Warning:  copy(/srv/www/dha/htdocs//wp-content/plugins/akismet/_inc/img/logo-full-2x.png): failed to open stream: No such file or directory in /srv/www/wp-cli/php/commands/core.php on
 line 119
==> default: PHP Warning:  copy(/srv/www/dha/htdocs//wp-content/plugins/akismet/_inc/akismet.css): failed to open stream: No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 119

there is the permission denied with the mkdir request from wp_cli and then issue with copy directory. I am uncertain if there is a problem with the addition of an extran /. the copy command appears to have 1 to many / after htdocs I think, I may be wrong.

==> default: PHP Warning:  copy(/srv/www/dha/htdocs//wp-content/plugins/akismet/_inc/akismet.css): failed to open stream: No such file or directory in /srv/www/wp-cli/php/commands/core.php on line 119

Everything is works great. At the moment I just need to drop the WordPress files into htdocs and it's rock-n-roll. I thought it would be important to advise this is happening and see if I could get some direction as to where this error results from.

Thanks again

bradp commented 9 years ago

I'd suggest checking out VV, should fit your needs.