Code Monkey home page Code Monkey logo

vccw's Introduction

VCCW

Build Status

This is a Vagrant configuration designed for development of WordPress plugins, themes, or websites.

To get started, check out http://vccw.cc/

Configuration

  1. Copy provision/default.yml to site.yml.
  2. Edit the site.yml.
  3. Run vagrant up.

Note

  • The site.yml has to be in the same directory with Vagrantfile.
  • You can put difference to the site.yml.

vccw's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vccw's Issues

Machine won't build

Hey,

I just gave this a shot and it craps out when building.

Below is the error from vagrant:
==> default: [2014-11-26T03:39:10+00:00] INFO: template[/etc/httpd/mods-availabl
e/deflate.conf] sending restart action to serviceapache2
==> default: [2014-11-26T03:39:11+00:00] INFO: service[apache2] restarted
==> default: [2014-11-26T03:39:11+00:00] ERROR: Running exception handlers
==> default: [2014-11-26T03:39:11+00:00] ERROR: Exception handlers complete
==> default: [2014-11-26T03:39:11+00:00] FATAL: Stacktrace dumped to /var/chef/c
ache/chef-stacktrace.out
==> default: [2014-11-26T03:39:11+00:00] ERROR: execute[generate-module-list](a
pache2::default line 68) had an error: Errno::ENOENT: No such file or directory

  • /usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/mods-
    available
    ==> default: [2014-11-26T03:39:11+00:00] FATAL: Chef::Exceptions::ChildConvergeE
    rror: Chef run process exited unsuccessfully (exit code 1)

In the output it says (abbreviated):
apache2::default line 68 had an error... no such file or directory - /usr/local/bin/apache2_module_generate.pl /usr/lib/httpd /etc/httpd/mods-available

Let me know if you need any other info.

Wordpress install root directory

Hi,
First of all, thank you for this great tool.

Is it possible to change the wordpress install root directory? I just want to have Wordpress installed on VM in a different directory than "wordpress". Will this change of directory be reflected in my local file system (synced folders)?

I look forward to your advice.

Thank you.

Help I'm New to This

So I'm using Vagrant and VirtualBox for the first time after coming from a MAMP environment and I had a few questions:

I've managed to get the Vagrant environment up and running, and my WordPress site is working at http://vccw.dev.

  • Where is the database? Usually with MAMP I went to phpMyAdmin or used SequelPro on the Mac to create and edit databases.
  • How do I view my local WordPress site on my iPhone over the same network? http://vccw.dev works great on my machine, but it doesn't work if I try to access the same url on my iPhone. I've also tried 192.168.33.10, with no luck.
  • Are there any great guides on getting started with the Vagrant + Chef + WordPress environment?

Any help is appreciated. Thanks in advance!

wp-cli not work

With clone from the git vccw, go to the installation directory of WordPress, if enter the wp command, the following error appears to me.

"Warning: mysql_connect(): No such file or directory in /Users/shuhei/hibou_works/oowaki/vagrant-wp/www/wordpress/wp-includes/wp-db.php on line 1147
Error:

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

  • Are you sure you have the correct username and password?
  • Are you sure that you have typed the correct hostname?
  • Are you sure that the database server is running?

If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

"

What's wrong?

vccwをgit cloneし、WordPressインストールディレクトリ内でwpコマンドを入力するとエラーになります。
エラーの内容は、上記""内です。
vagrant sshすればwpコマンドは使えますが、以前はホストマシンからWordPressインストールディレクトリ内でもwpコマンドが通っていました。

vccw設定中の時点で以前と違う部分は、
「[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /var/www
[default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- /tmp/vagrant-chef-1/chef-solo-2/cookbooks
[default] Running provisioner: shell...
[default] Running: inline script
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14101 100 14101 0 0 7033 0 0:00:02 0:00:02 --:--:-- 19749
Downloading Chef for el...
downloading https://www.opscode.com/chef/metadata?v=&prerelease=false&p=el&pv=6&m=i686
to file /tmp/install.sh.3085/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/i686/chef-11.8.2-1.el6.i686.rpm
md5 acae903873ec6562189c443a5ff38139
sha256 9d218e5caae4b6ea2cda2c427260c3abee3385633227b53cb475bf7ca0acdaed
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/i686/chef-11.8.2-1.el6.i686.rpm
to file /tmp/install.sh.3085/chef-.i686.rpm
trying wget...
Checksum compare with sha256sum succeeded.
Installing Chef
installing with rpm...
warning: /tmp/install.sh.3085/chef-.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
Preparing... ##################################################
chef ##################################################
Thank you for installing Chef!
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...」
です。
長いですが、何か操作で間違っている部分がありますでしょうか…

Failed to write session data

After installing a template (I use 64bit centos), I had the following error code
Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

I was able to solve the issue, after ssh into vagrant as root (pw:vagrant) and chmod /var/lib/php/session to 777 (was 770 bevore). I guess, there is a nicer way to solve the issue: http://stackoverflow.com/a/20714179

WordPress importer and media uploader are not working.

環境
Mac OS X 10.9.5
VirtualBox 4.3.18
Vagrant 1.6.5

VCCWで仮想環境を構築したところ、
WordPressのインストール自体はうまくいったのですが、
テストデータのインポートや、メディアのアップロードを行おうとすると、
エラーが発生してしまい、うまくいきませんでした。

WordPress Importerでのアップロード時のエラーメッセージ
Sorry, there has been an error.

メディアアップロード時のエラーメッセージ
アップロード中にエラーが発生しました。後ほど再度お試しください。

/wp-content/uploads/ のパーミッション等は確認しましたが、
777に変更しても動作に変わりありません。

インストールや設定等は、下記のReadmeに記載した流れで行なっております。
https://github.com/littlebirdjp/littlebird-theme

もし原因や解決法がお分かりでしたら、ご教授いただけますと幸いです。

Please add notes about all ssh/mysql users created

Could not find any notes on what users are created in unix and in MySQL:

  • how to access mysql root
  • what is the wordpress username/pass for mysql
  • what is the vagrant ssh password

It can be googled and tried, but may I ask you to add this info to the documentation.

PHP 5.4.x support

This is great as it mimics more closely the typical stack for shared hosting and cPanel.... but do you think it would be possible to offer an option of using PHP 5.4.x as well ?

Chef never successfully completed!

I've tried to install it on my computer using default setup, but installation always ends with errors:

[2014-05-03T15:36:07+00:00] INFO: package[php package] sending run action to execute[generate-module-list] (imm
ediate)                                                                                                        

================================================================================                               
Error executing action `run` on resource 'execute[generate-module-list]'                                       
================================================================================                               


Errno::ENOENT                                                                                                  
-------------                                                                                                  
No such file or directory - /usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/mods-avail
able                                                                                                           


Resource Declaration:                                                                                          
---------------------                                                                                          
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb                                      

 68:   execute "generate-module-list" do                                                                       
 69:     command "/usr/local/bin/apache2_module_conf_generate.pl #{node['apache']['lib_dir']} #{node['apache'][
'dir']}/mods-available"                                                                                        
 70:     action :nothing                                                                                       
 71:   end                                                                                                     
 72:                                                                                                           



Compiled Resource:                                                                                             
------------------                                                                                             
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb:68:in `from_file'           

execute("generate-module-list") do                                                                             
  action [:nothing]                                                                                            
  retries 0                                                                                                    
  retry_delay 2                                                                                                
  guard_interpreter :default                                                                                   
  command "/usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/mods-available"            
  backup 5                                                                                                     
  returns 0                                                                                                    
  cookbook_name :apache2                                                                                       
  recipe_name "default"                                                                                        
end

[2014-05-03T15:36:07+00:00] INFO: Running queued delayed notifications before re-raising exception             
[2014-05-03T15:36:07+00:00] INFO: template[/etc/iptables.d/all_established] sending run action to execute[rebui
ld-iptables] (delayed)                                                                                         
[2014-05-03T15:36:07+00:00] INFO: execute[rebuild-iptables] ran successfully                                   
[2014-05-03T15:36:07+00:00] INFO: template[/etc/httpd/mods-available/deflate.conf] sending restart action to se
rvice[apache2] (delayed)                                                                                       
[2014-05-03T15:36:09+00:00] INFO: service[apache2] restarted                                                   
[2014-05-03T15:36:09+00:00] ERROR: Running exception handlers                                                  
[2014-05-03T15:36:09+00:00] ERROR: Exception handlers complete                                                 
[2014-05-03T15:36:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out                    
[2014-05-03T15:36:09+00:00] ERROR: execute[generate-module-list] (apache2::default line 68) had an error: Errno
::ENOENT: No such file or directory - /usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/
mods-available                                                                                                 
[2014-05-03T15:36:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully
 (exit code 1)                                                                                                 
Chef never successfully completed! Any errors should be visible in the                                         
output above. Please fix your recipes so that they properly complete.                                          

wordpress.local and 192.168.33.10 returns 403

After unpacking v1.3 into a folder and running vagrant up on a fairly standard config-file, the server returns a 403 error on both wordpress.local and 192.168.33.10. I do not receive any error on running vagrant up. Vagrantfile looks like:

#
# Configuration for the WordPress
#

VM_BOX               = "chef/centos-6.5-i386" # for 32bit
# VM_BOX               = "chef/centos-6.5" # for 64bit

WP_VERSION           = 'latest' # latest or 3.4 or later or http(s):// URL to zipfile
WP_LANG              = "en_US" # WordPress locale (e.g. ja)

WP_HOSTNAME          = "wordpress.local" # e.g example.com
WP_IP                = "192.168.33.10" # host ip address

WP_TITLE             = "Welcome to the Vagrant" # title
WP_ADMIN_USER        = "admin" # default user
WP_ADMIN_PASS        = "admin" # default user's password

WP_DB_PREFIX         = 'wp_' # Database prefix
WP_DB_HOST           = 'localhost' # or WP_IP and other
WP_DB_NAME           = 'wordpress'
WP_DB_USER           = 'wordpress'
WP_DB_PASS           = 'wordpress'

WP_DEFAULT_PLUGINS   = %w(theme-check plugin-check dynamic-hostname) # default plugins
WP_DEFAULT_THEME     = '' # e.g. twentythirteen

WP_DIR               = 'wp' # e.g. /wp or wp or other
WP_IS_MULTISITE      = true # enable multisite when true
WP_FORCE_SSL_ADMIN   = false # enable force ssl admin when true
WP_DEBUG             = true # enable debug mode
WP_SAVEQUERIES       = true # save the database queries to an array
WP_THEME_UNIT_TEST   = true # automatic import theme unit test data

WP_ALWAYS_RESET      = true # always reset database

WP_CHEF_COOKBOOKS_PATH = File.dirname(__FILE__) # path to the cookbooks (e.g. ~/vccw)

if WP_LANG === 'ja' then
  WP_THEME_UNIT_TEST_DATA_URI = 'https://raw.githubusercontent.com/jawordpressorg/theme-test-data-ja/master/wordpress-theme-test-date-ja.xml'
else
  WP_THEME_UNIT_TEST_DATA_URI = 'https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml'
end

# end configuration

Can't install vccw on windows7

Hello,

I am struggling to get this running on windows 7. I am posting it here because I have looked tutorials and read different resources but I don't manage to get it working.

Followed the steps here > http://vccw.cc/
I have added the vagrant-hostsupdater plugin and also the IP 192.168.33.10 in my hosts file.
But when browsing either http://vccw.dev/ or http://192.168.33.10/ and I get the message This webpage is not available ERR_ICANN_NAME_COLLISION

This is what I am getting when I run vagrant up: http://pastebin.com/jpTbfb36

Any ideas? Thanks in advance.

List of software

Vagrant machine like VVV have a list of all the softwares on the machine.
Exist something like this for vccw?
Is useful for a comparison.

WordPress importer and media uploader are not working. Version 2.9.0

Hello,
My env is:

  • Windows 8.1
  • Vagrant 1.6.5
  • Virtualbox 4.3.26
  • VCCW version 2.9.0

And I do the provision withou any errors, but when I come to the wordpress admin interface and try do a upload, a error without message appears

file,jpg: An error occurred in the upload. Please try again later.

Help me ?

Wordmove pushing database error

Hi there,

I cd to my project folder where the Movefile is
I run: word move push -all
everything run fine, apart from Pushing Database:
I get the error below:
local | mysqldump --host=localhost --user=wordpress --password=wordpress wordpress > /Users/user/myproject/www/wordpress/wp-content/dump.sql
sh: mysqldump: command not found
/Library/Ruby/Gems/2.0.0/gems/wordmove-1.2.0/lib/wordmove/deployer/base.rb:147:in `run': Return code reports an error (RuntimeError)

can someone help with this please

Thanks

Can't complete "vagrant up".

Can't complete "vagrant up".
I tried reinstall Vagrant and VirtualBox.
But can't complete too.

  • OS X 10.9.1
  • Vagrant 1.4.3
  • VirtualBox 4.3.6

Error message as below

[2014-02-13T10:24:06+00:00] INFO: template[/etc/wp-grants.sql] sending run action to execute[mysql-install-wp-privileges] (immediate)
[2014-02-13T10:24:06+00:00] INFO: execute[mysql-install-wp-privileges] ran successfully
[2014-02-13T10:24:06+00:00] INFO: execute[create wordpress database] ran successfully
[2014-02-13T10:24:07+00:00] INFO: bash[install zip] ran successfully

================================================================================
Error executing action `run` on resource 'bash[wordpress-core-download]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20140213-3512-aq1ba6" ----
STDOUT:
STDERR: Error: Too many positional arguments: --locale=
---- End output of "bash"  "/tmp/chef-script20140213-3512-aq1ba6" ----
Ran "bash"  "/tmp/chef-script20140213-3512-aq1ba6" returned 1


Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-2/cookbooks/wp-install/recipes/default.rb

 57: bash "wordpress-core-download" do
 58:   user "vagrant"
 59:   group "vagrant"
 60:   if node['wp-install']['wp_version'] == 'latest' then
 61:       code <<-EOH
 62: wp core download \\
 63: --path=#{Shellwords.shellescape(node['wp-install']['wpdir'])} \\
 64: --locale=#{Shellwords.shellescape(node['wp-install']['locale'])} \\
 65: --force
 66:       EOH
 67:   elsif node['wp-install']['wp_version'] =~ %r{^http(s)?://.*?\.zip$}
 68:       code <<-EOH
 69:         cd /tmp && wget -O ./download.zip #{Shellwords.shellescape(node['wp-install']['wp_version'])} && unzip -d /var/www/ ./download.zip && rm ./download.zip
 70:       EOH
 71:   else
 72:       code <<-EOH
 73: wp core download \\
 74: --path=#{Shellwords.shellescape(node['wp-install']['wpdir'])} \\
 75: --locale=#{Shellwords.shellescape(node['wp-install']['locale'])} \\
 76: --version=#{Shellwords.shellescape(node['wp-install']['wp_version'])} \\
 77: --force
 78:       EOH
 79:   end
 80: end
 81:
 82: file File.join(node['wp-install']['wpdir'], "wp-config.php") do
 83:   action :delete
 84:   backup false
 85: end
 86:
 87: bash "wordpress-core-config" do
 88:   user "vagrant"
 89:   group "vagrant"
 90:   cwd node['wp-install']['wpdir']
 91:   code <<-EOH
 92:     wp core config \\
 93:     --dbhost=#{Shellwords.shellescape(node['wp-install']['dbhost'])} \\
 94:     --dbname=#{Shellwords.shellescape(node['wp-install']['dbname'])} \\
 95:     --dbuser=#{Shellwords.shellescape(node['wp-install']['dbuser'])} \\
 96:     --dbpass=#{Shellwords.shellescape(node['wp-install']['dbpassword'])} \\
 97:     --dbprefix=#{Shellwords.shellescape(node['wp-install']['dbprefix'])} \\
 98:     --locale=#{Shellwords.shellescape(node['wp-install']['locale'])} \\
 99:     --extra-php <<PHP
100: define( 'WP_DEBUG', #{node['wp-install']['debug_mode']} );
101: define( 'FORCE_SSL_ADMIN', #{node['wp-install']['force_ssl_admin']} );
102: define( 'SAVEQUERIES', #{node['wp-install']['savequeries']} );
103: PHP
104:   EOH
105: end
106:
107: if node['wp-install']['always_reset'] == true then
108:     bash "wordpress-db-reset" do
109:       user "vagrant"



Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-2/cookbooks/wp-install/recipes/default.rb:57:in `from_file'

bash("wordpress-core-download") do
  action "run"
  retries 0
  retry_delay 2
  command "\"bash\"  \"/tmp/chef-script20140213-3512-aq1ba6\""
  backup 5
  group "vagrant"
  returns 0
  user "vagrant"
  code "wp core download \\\n--path=/var/www/wordpress/ \\\n--locale='' \\\n--force\n"
  interpreter "bash"
  cookbook_name :"wp-install"
  recipe_name "default"
end



[2014-02-13T10:24:08+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-02-13T10:24:08+00:00] INFO: template[/etc/iptables.d/all_established] sending run action to execute[rebuild-iptables] (delayed)
[2014-02-13T10:24:08+00:00] INFO: execute[rebuild-iptables] ran successfully
[2014-02-13T10:24:08+00:00] INFO: template[/etc/httpd/mods-available/deflate.conf] sending restart action to service[apache2] (delayed)
[2014-02-13T10:24:09+00:00] INFO: service[apache2] restarted
[2014-02-13T10:24:09+00:00] INFO: execute[a2ensite wordpress.conf] sending restart action to service[apache2] (delayed)
[2014-02-13T10:24:10+00:00] INFO: service[apache2] restarted
[2014-02-13T10:24:10+00:00] ERROR: Running exception handlers
[2014-02-13T10:24:10+00:00] ERROR: Exception handlers complete
[2014-02-13T10:24:11+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-13T10:24:11+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[wordpress-core-download] (wp-install::default line 57) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20140213-3512-aq1ba6" ----
STDOUT:
STDERR: Error: Too many positional arguments: --locale=
---- End output of "bash"  "/tmp/chef-script20140213-3512-aq1ba6" ----
Ran "bash"  "/tmp/chef-script20140213-3512-aq1ba6" returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

Symlynks not working

Tried to create a soft symlink inside www/wordpress to my plugin outside of the vagrant root folder, but virtualbox can't see it.

Changing wp_content via Vagrantfile

Hello Miya! I saw you at the talk here in Bangkok. I have used XAMPP in the past and am moving to VCCW. I see I can easily change the wp_content location via Wordmove, but how about with Vagrant during the VM creation? Is that possible?

vagrant reload --provision fails

==> default: Running chef-solo...
==> default: [2015-02-15T11:16:41+00:00] INFO: Forking chef instance to converge...
==> default: [2015-02-15T11:16:41+00:00] WARN:
==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> default: SSL validation of HTTPS requests is disabled. HTTPS connections are still
==> default: encrypted, but chef is not able to detect forged replies or man in the middle
==> default: attacks.
==> default:
==> default: To fix this issue add an entry like this to your configuration file:
==> default:
==> default: ```
==> default:   # Verify all HTTPS connections (recommended)
==> default:   ssl_verify_mode :verify_peer
==> default:
==> default:   # OR, Verify only connections to chef-server
==> default:   verify_api_cert true
==> default: ```
==> default:
==> default: To check your SSL configuration, or troubleshoot errors, you can use the
==> default: `knife ssl check` command like so:
==> default:
==> default: ```
==> default:   knife ssl check -c /tmp/vagrant-chef/solo.rb
==> default: ```
==> default:
==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> default: [2015-02-15T11:16:41+00:00] INFO: *** Chef 11.16.4 ***
==> default: [2015-02-15T11:16:41+00:00] INFO: Chef-client pid: 19626
==> default: [2015-02-15T11:16:42+00:00] INFO: Setting the run_list to ["recipe[yum::remi]", "recipe[iptables]", "recipe[apache2]", "recipe[apache2::mod_php5]", "recipe[apache2::mod_ssl]", "recipe[mysql::server]", "recipe[mysql::ruby]", "recipe[php::package]", "recipe[wpcli]", "recipe[wpcli::install]", "recipe[vccw]"] from CLI options
==> default: [2015-02-15T11:16:42+00:00] INFO: Run List is [recipe[yum::remi], recipe[iptables], recipe[apache2], recipe[apache2::mod_php5], recipe[apache2::mod_ssl], recipe[mysql::server], recipe[mysql::ruby], recipe[php::package], recipe[wpcli], recipe[wpcli::install], recipe[vccw]]
==> default: [2015-02-15T11:16:42+00:00] INFO: Run List expands to [yum::remi, iptables, apache2, apache2::mod_php5, apache2::mod_ssl, mysql::server, mysql::ruby, php::package, wpcli, wpcli::install, vccw]
==> default: [2015-02-15T11:16:42+00:00] INFO: Starting Chef Run for lsb.vagrant
==> default: [2015-02-15T11:16:42+00:00] INFO: Running start handlers
==> default: [2015-02-15T11:16:42+00:00] INFO: Start handlers complete.
==> default: [2015-02-15T11:16:42+00:00] ERROR: Running exception handlers
==> default: [2015-02-15T11:16:42+00:00] ERROR: Exception handlers complete
==> default: [2015-02-15T11:16:42+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2015-02-15T11:16:42+00:00] ERROR: Cookbook yum not found. If you're loading yum from another cookbook, make sure you configure the dependency in your metadata
==> default: [2015-02-15T11:16:42+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Output from /var/chef/cache/chef-stacktrace.out:

Generated at 2015-02-15 11:16:42 +0000
Chef::Exceptions::CookbookNotFound: Cookbook yum not found. If you're loading yum from another cookbook, make sure you configure the dependency in your metadata
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/cookbook/cookbook_collection.rb:38:in `block in initialize'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/mash.rb:77:in `yield'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/mash.rb:77:in `default'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/mash.rb:77:in `default'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:277:in `[]'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:277:in `each_cookbook_dep'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:255:in `add_cookbook_with_deps'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:88:in `block in cookbook_order'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:86:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:86:in `cookbook_order'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:98:in `compile_libraries'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context/cookbook_compiler.rb:71:in `compile'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/run_context.rb:89:in `load'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/policy_builder/expand_node_object.rb:73:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:265:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:429:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:213:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:236:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:226:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:218:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/solo.rb:218:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:55:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:23:in `load'
/usr/bin/chef-solo:23:in `<main>'

Install composer

Add following code to the vccw cookbook.

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer

hard coded mysql variables

Looking through the Vagrant file before running up and saw:

      :mysql => {
        :bind_address           => "0.0.0.0",
        :server_debian_password => "wordpress",
        :server_root_password   => "wordpress",
        :server_repl_password   => "wordpress"
      },

WP in virtual machine could not connect to DNS, can this be fixed in a recipe?

Great package, I ran into this small issue:

I could not update Wordpress or plugins from the admin dashboard or wp-cli, because DNS on the virtual machine was not resolving. I found the solution on this Stack Overflow thread: http://serverfault.com/questions/453185/vagrant-virtualbox-dns-10-0-2-3-not-working

Steps I took from the host machine vagrant folder to resolve it for this instance:

  1. vagrant halt
  2. VBoxManage modifyvm "vagrant-wp_default_1395345552109_83402" --natdnshostresolver1 on
  3. vagrant up

I would like to incorporate this into the config somewhere, but this is my first experience with Chef. Is this something that needs fixing, or did I just do something wrong? (I did modify the WP settings in Vagrantfile, but made no other modifications.)

PHP 7.0.x support

It would be nice if there was PHP 7 support since it is very fast and it is already stable.

Chef fail to restart apache when php_version is specified in site.yml

I tried to 'vagrant up' with php_version, and then I got chef abend with apache restarting probrem.
Commands are as below.

$ unzip vccw-2.13.0.zip
$ cd vccw-2.13.0
$ cp provision/default.yml site.yml
$ vi site.yml
----
# set php_version to any version number
php_version: 5.3.3
----
$ vagrant up

Provision has been begun, but chef failed to restart apache.

Bringing machine 'vccw.dev' up with 'virtualbox' provider...
==> vccw.dev: Importing base box 'miya0001/vccw'...
==> vccw.dev: Matching MAC address for NAT networking...

[...]

==> vccw.dev: [2015-08-10T03:38:48+00:00] INFO: template[/etc/httpd/sites-available/wordpress.conf] sending reload action to service[apache2] (delayed)
==> vccw.dev: Recipe: apache2::default
==> vccw.dev:
==> vccw.dev: * service[apache2] action reload
==> vccw.dev:  (up to date)
==> vccw.dev: [2015-08-10T03:38:48+00:00] INFO: bash[create-ssl-keys] sending restart action to service[apache2] (delayed)
==> vccw.dev:
==> vccw.dev: * service[apache2] action restart
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev: ================================================================================
==> vccw.dev:
==> vccw.dev: Error executing action `restart` on resource 'service[apache2]'
==> vccw.dev:
==> vccw.dev: ================================================================================
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev: Mixlib::ShellOut::ShellCommandFailed
==> vccw.dev:     ------------------------------------
==> vccw.dev:     Expected process to exit with [0], but received '1'
==> vccw.dev:     ---- Begin output of /sbin/service httpd restart && sleep 1 ----
==> vccw.dev:     STDOUT: Stopping httpd: [FAILED]
==> vccw.dev:     Starting httpd: [FAILED]
==> vccw.dev:     STDERR: [Mon Aug 10 03:38:48 2015] [warn] module php5_module is already loaded, skipping
==> vccw.dev:     [Mon Aug 10 03:38:48 2015] [warn] module ssl_module is already loaded, skipping
==> vccw.dev:     Syntax error on line 2 of /etc/httpd/conf.d/README:
==> vccw.dev:     Invalid command 'This', perhaps misspelled or defined by a module not included in the server configuration
==> vccw.dev:     ---- End output of /sbin/service httpd restart && sleep 1 ----
==> vccw.dev:     Ran /sbin/service httpd restart && sleep 1 returned 1
==> vccw.dev:
==> vccw.dev:     Resource Declaration:
==> vccw.dev:     ---------------------
==> vccw.dev:     # In /tmp/vagrant-chef/d9bf11d3e64898221fd7238327d4de7d/cookbooks/apache2/recipes/default.rb
==> vccw.dev:
==> vccw.dev:     221: service "apache2" do
==> vccw.dev:     222:   action :start
==> vccw.dev:     223: end
==> vccw.dev:
==> vccw.dev:     Compiled Resource:
==> vccw.dev:     ------------------
==> vccw.dev:     # Declared in /tmp/vagrant-chef/d9bf11d3e64898221fd7238327d4de7d/cookbooks/apache2/recipes/default.rb:221:in `from_file'
==> vccw.dev:
==> vccw.dev:     service("apache2") do
==> vccw.dev:       action [:start]
==> vccw.dev:       supports {:restart=>true, :reload=>true, :status=>true}
==> vccw.dev:       retries 0
==> vccw.dev:       retry_delay 2
==> vccw.dev:       guard_interpreter :default
==> vccw.dev:       service_name "httpd"
==> vccw.dev:       enabled true
==> vccw.dev:       running true
==> vccw.dev:       pattern "apache2"
==> vccw.dev:       restart_command "/sbin/service httpd restart && sleep 1"
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:   reload_command "/sbin/service httpd reload && sleep 1"
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:   cookbook_name :apache2
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:   recipe_name "default"
==> vccw.dev:
==> vccw.dev:
==> vccw.dev: end
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev:
==> vccw.dev: Running handlers:
==> vccw.dev: [2015-08-10T03:38:48+00:00] ERROR: Running exception handlers
==> vccw.dev: Running handlers complete
==> vccw.dev:
==> vccw.dev: [2015-08-10T03:38:48+00:00] ERROR: Exception handlers complete
==> vccw.dev: [2015-08-10T03:38:48+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> vccw.dev: Chef Client failed. 76 resources updated in 1135.384299982 seconds
==> vccw.dev: [2015-08-10T03:38:49+00:00] ERROR: service[apache2] (apache2::default line 221) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> vccw.dev: ---- Begin output of /sbin/service httpd restart && sleep 1 ----
==> vccw.dev: STDOUT: Stopping httpd: [FAILED]
==> vccw.dev: Starting httpd: [FAILED]
==> vccw.dev: STDERR: [Mon Aug 10 03:38:48 2015] [warn] module php5_module is already loaded, skipping
==> vccw.dev: [Mon Aug 10 03:38:48 2015] [warn] module ssl_module is already loaded, skipping
==> vccw.dev: Syntax error on line 2 of /etc/httpd/conf.d/README:
==> vccw.dev: Invalid command 'This', perhaps misspelled or defined by a module not included in the server configuration
==> vccw.dev: ---- End output of /sbin/service httpd restart && sleep 1 ----
==> vccw.dev: Ran /sbin/service httpd restart && sleep 1 returned 1
==> vccw.dev: [2015-08-10T03:38:49+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

Host: OS X 10.10.3
VirtualBox: 4.3.30r101610
Vagrant: 1.7.4
VCCW: 2.13.0

Vagrantfile の WP_DIR の役割

WordPress を専用ディレクトリに配置する」のような構成にしたくて、Vagrantfileを下記のように設定にしたのですが、

WP_HOSTNAME  = "example.com"
WP_DIR       = '/wp'

wp-config.php は下記の内容で生成されました。

define( 'WP_HOME', 'http://example.com/wp' );
define( 'WP_SITEURL', 'http://example.com/wp' );

これは

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com/wp' );

のようになるのが正しいのかなと思ったのですが、WP_DIR の役割は単純に WordPress サイトの URL を http://example.com/wp のようにするためのものなのでしょうか?
(その場合は WP_HOME を http://example.com/wp のようにするのかなと思ったのですが…)

WP_HOSTNAME is not accessible

Hello Mr.Miya! :)

I have successfully running 'vagrant up' without any error.

I can access my WordPress site from http://192.168.33.10 (which is set in WP_IP in Vagrantfile). However, http://wordpress.local (which is set in WP_HOSTNAME in Vagrantfile) shown up as 'Server not found' page instead.

I used original Vagrantfile without any change.

Please let me know if there is a way to check why WP_HOSTNAME url is not working.

Best Regards,
Woratana

setting hosts file on Windows 7

I guess it is a general problem with using the vagrant-hostsupdater plugin on windows 7:
If vagrant up is started as normal user, it has no rights to edit the file c:\Windows\System32\drivers\etc\hosts and vagrant stops building the machine throwing an error. I was able to solve the problem by giving the group "user" write access to hosts-file.

However, I consider this a a security flaw, since it would be easier for malware to change hosts-settings. Would it be possible to not interrupt the building process and show a message like "I was not able to change hosts-file. Please add 'dev.wordpress.dev 192.168.30.1' by yourself!"

What will happen, if the vagrant-hostsupdater plugin is not installed? (did not try it yet)

Missing .htaccess file

First of all, big thanks for the work, that's definitely the best vagrant package I found to quickly set up a shared multisite WP. Great work !

I just needed to add the typical WP multisite .htaccess fle to /www/wordpress after setuping the box, I think it's missing.

Or maybe I did something wrong, in that case "sorry about that" ;)

Thanks again for your work !

Mounting a different directory

Just wondering if there's an easy way to mount a specific directory i.e. a theme, rather than mounting the whole WordPress instance. Do you know how I can do this?

vagrant up時のワーニング(warning of vagrant up)

vagrant up時にwarningがでるのですが、特に問題はないのでしょうか

warning will appear at vagrant up. Why is not there a particular problem?

[2014-01-30T13:37:56+00:00] WARN: Cloning resource attributes for package[perl] from prior resource (CHEF-3694)
[2014-01-30T13:37:56+00:00] WARN: Previous package[perl]: /tmp/vagrant-chef-1/chef-solo-2/cookbooks/iptables/recipes/default.rb:24:in from_file' [2014-01-30T13:37:56+00:00] WARN: Current package[perl]: /tmp/vagrant-chef-1/chef-solo-2/cookbooks/apache2/recipes/default.rb:54:infrom_file'
[2014-01-30T13:37:56+00:00] WARN: Cloning resource attributes for service[apache2] from prior resource (CHEF-3694)
[2014-01-30T13:37:56+00:00] WARN: Previous service[apache2]: /tmp/vagrant-chef-1/chef-solo-2/cookbooks/apache2/recipes/default.rb:27:in from_file' [2014-01-30T13:37:56+00:00] WARN: Current service[apache2]: /tmp/vagrant-chef-1/chef-solo-2/cookbooks/apache2/recipes/default.rb:246:infrom_file'
[2014-01-30T13:37:56+00:00] WARN: Cloning resource attributes for file[/etc/httpd/conf.d/ssl.conf] from prior resource (CHEF-3694)
[2014-01-30T13:37:56+00:00] WARN: Previous file[/etc/httpd/conf.d/ssl.conf]: /tmp/vagrant-chef-1/chef-solo-2/cookbooks/apache2/recipes/default.rb:87:in block in from_file' [2014-01-30T13:37:56+00:00] WARN: Current file[/etc/httpd/conf.d/ssl.conf]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/mod_ssl.rb:31:infrom_file'
[2014-01-30T13:37:56+00:00] WARN: Cloning resource attributes for template[/etc/httpd/ports.conf] from prior resource (CHEF-3694)
[2014-01-30T13:37:56+00:00] WARN: Previous template[/etc/httpd/ports.conf]: /tmp/vagrant-chef-1/chef-solo-2/cookbooks/apache2/recipes/default.rb:198:in from_file' [2014-01-30T13:37:56+00:00] WARN: Current template[/etc/httpd/ports.conf]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/mod_ssl.rb:37:infrom_file'
[2014-01-30T13:37:56+00:00] WARN: Cloning resource attributes for directory[/var/lib/mysql] from prior resource (CHEF-3694)
[2014-01-30T13:37:56+00:00] WARN: Previous directory[/var/lib/mysql]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb:108:in block in from_file' [2014-01-30T13:37:56+00:00] WARN: Current directory[/var/lib/mysql]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/server.rb:108:inblock in from_file'

403 on dump.php

Not sure if this is a host specific issue or not, but I get a 403 on the dump.php file when its in wp-content. If I move it out to the root, it works fine.

php.ini upload_max_filesize is set to 2MBs

Today I got upload_max_filesize error while installing a theme by uploading. After that I check php.ini and saw upload_max_filesize is set to 2 MBs. Isn't it a little low? I just wanted to report it.

Failed to mount folders in Linux guest.

環境
OS X 10.10.1 Yosemite
VirtualBox4.3.20
Vagrant1.6.5

VCCWをcloneし、Vagrantfileはそのままでvagrant upをしました。

以下エラー文です
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=id -u vagrant,gid=getent group vagrant | cut -d: -f3 vagrant /vagrant
mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant vagrant /vagrant

The error output from the last command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device

vagrant sshでアクセスできるのでvagrant自体は立ち上がっています。

なおvagrantのversionを1.5.1に落としてvagrant upしたところ問題なくwordpress環境が作成できました。

プロビジョニングでWP_CLIがエラーとなっています

こんばんは、日本語で失礼いたします。

  • Windows7 Pro 64Bit
  • VirtualBox 4.3.26
  • Vagrant 1.7.2
  • VCCW v2.11.0
> vagrant up

を実行し、以下のメッセージで終了していたのですが、ブラウザーでサイトを表示しても404となり、WPが表示されません。

==> mydomain.jp.local: STDERR: PHP Fatal error:  Call to undefined function WP_CLI\wp_clean_update_cache() in phar:///usr/share/wp-cli/phar/wp-cli.phar/php/WP_CLI/CommandWithTranslation.php on line 162
==> mydomain.jp.local: Fatal error: Call to undefined function WP_CLI\wp_clean_update_cache() in phar:///usr/share/wp-cli/phar/wp-cli.phar/php/WP_CLI/CommandWithTranslation.php on line 162
==> mydomain.jp.local: ---- End output of "bash"  "/tmp/chef-script20150626-26705-1qtjztr" ----
==> mydomain.jp.local: Ran "bash"  "/tmp/chef-script20150626-26705-1qtjztr" returned 255
==> mydomain.jp.local: [2015-06-26T10:28:46+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.

WP_CLIがエラーを出しているようで、どういった状態か分からないのですが、Provisioningが完全に完了していないようです。
通常ならMovefileが作成されるのですが、作成されていませんでした。

数日前、同環境で別のローカルサイトを作成した時には問題は無かったです。
WP_CLIの問題かもしれませんが、ご確認いただけますでしょうか。

よろしくお願い申し上げます。

Chef never successfully completed! error is occured

Hello
my environment is
・Mac OS X Yosemite v10.10.3
・Vagrant 1.7.2
・VirtualBox 4.3.26
・VCCW v2.11.0

I runned 'vagrant up' the error below occured.

Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

I tried some other versions VCCW but all of them didn't work.

Help me, please!

Db always resetted on provision

I really like VCCW! Good job!

I'm trying to custumize the provisioning. I have copied provision/site.yml to site.yml and it works. When I add plugins and provision the machine they're installed. Works great!
But when I change reset_db_on_provision: true to false in my site.yml the database is still resetted on provision.

Is there anything that I might be doing wrong?

Problems setting a different default theme in site.yml

I'm not sure if this is a bug or just my own incompetence, but I'm looking for a little help setting a theme in site.yml.

I'm trying to use this theme: repo link

From my understanding of the documentation, all I need to do is change the theme parameter in site.yml to the URL of the .zip of my desired theme, so my site.yml reads:

theme: https://github.com/digisavvy/some-like-it-neat/archive/master.zip

I have also tried it as:

theme: 'https://github.com/digisavvy/some-like-it-neat/archive/master.zip'

I get the following error:

==> spwp.dev: FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> spwp.dev: ERROR: bash[WordPress https://github.com/digisavvy/some-like-it-neat/archive/master.zip activate] (wpcli::install line 185) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> spwp.dev: ---- Begin output of "bash"  "/tmp/chef-script20150718-26805-m5zhk6" ----
==> spwp.dev: STDOUT:
==> spwp.dev: STDERR: Error: The 'master' theme could not be found.
==> spwp.dev: ---- End output of "bash"  "/tmp/chef-script20150718-26805-m5zhk6" ----
==> spwp.dev: Ran "bash"  "/tmp/chef-script20150718-26805-m5zhk6" returned 1
==> spwp.dev: FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

I'm not sure if maybe linking directly to the github .zip download is an issue or not. Should I try hosting it on a server of my own instead? Or maybe I'm just missing something simple somewhere.

timeout during server version negotiating

    vccw.dev: /tmp/vagrant-chef/f5d6a7aff195ae15a39bf602fb4e0cfe/cookbooks => /github.com/vccw-team/vccw/vccw-2.19.0/provision/cookbooks
An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

timeout during server version negotiating

I want to install WordPress to sub directory.

Hi, Thanks for great tool.

I have a question.
I have tried vccw many times,but I sometimes succeed and sometimes fail by using same vagrant file.

I added vagrantfile as follows:

WP_LANG="ja"
SITE_URL="/wp"
WP_HOSTNAME="test0114.local”

After that, vagrant up

——————————————————

MatsuoShoko-no-MacBook-Pro:repos showw$ cd 0114
MatsuoShoko-no-MacBook-Pro:0114 showw$ ls
Gemfile Vagrantfile.theme-review
Gemfile.lock cookbooks
README.md provision
Rakefile site-cookbooks
Vagrantfile spec
MatsuoShoko-no-MacBook-Pro:0114 showw$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'miya0001/vccw'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'miya0001/vccw' is up to date...
==> default: Setting the name of the VM: 0114_default_1421196090974_87941
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Error: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /Users/showw/repos/0114
default: /var/www/wordpress => /Users/showw/repos/0114/www/wordpress
default: /tmp/vagrant-chef-1/chef-solo-1/cookbooks => /Users/showw/repos/0114/cookbooks
default: /tmp/vagrant-chef-1/chef-solo-2/cookbooks => /Users/showw/repos/0114/site-cookbooks
==> default: Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
[2015-01-14T00:42:25+00:00] INFO: Forking chef instance to converge...
[2015-01-14T00:42:25+00:00] WARN:


SSL validation of HTTPS requests is disabled. HTTPS connections are still
encrypted, but chef is not able to detect forged replies or man in the middle
attacks.

To fix this issue add an entry like this to your configuration file:

  # Verify all HTTPS connections (recommended)
  ssl_verify_mode :verify_peer

  # OR, Verify only connections to chef-server
  verify_api_cert true

To check your SSL configuration, or troubleshoot errors, you can use the
knife ssl check command like so:

  knife ssl check -c /tmp/vagrant-chef-1/solo.rb

[2015-01-14T00:42:25+00:00] INFO: *** Chef 11.16.4 ***
[2015-01-14T00:42:25+00:00] INFO: Chef-client pid: 20604
[2015-01-14T00:42:42+00:00] INFO: Setting the run_list to ["recipe[yum::remi]", "recipe[iptables]", "recipe[apache2]", "recipe[apache2::mod_php5]", "recipe[apache2::mod_ssl]", "recipe[mysql::server]", "recipe[mysql::ruby]", "recipe[php::package]", "recipe[wpcli]", "recipe[wpcli::install]", "recipe[vccw]"] from CLI options
[2015-01-14T00:42:42+00:00] INFO: Run List is [recipe[yum::remi], recipe[iptables], recipe[apache2], recipe[apache2::mod_php5], recipe[apache2::mod_ssl], recipe[mysql::server], recipe[mysql::ruby], recipe[php::package], recipe[wpcli], recipe[wpcli::install], recipe[vccw]]
[2015-01-14T00:42:42+00:00] INFO: Run List expands to [yum::remi, iptables, apache2, apache2::mod_php5, apache2::mod_ssl, mysql::server, mysql::ruby, php::package, wpcli, wpcli::install, vccw]
[2015-01-14T00:42:42+00:00] INFO: Starting Chef Run for test0114.local
[2015-01-14T00:42:42+00:00] INFO: Running start handlers
[2015-01-14T00:42:42+00:00] INFO: Start handlers complete.
==> default: Checking for host entries
==> default: adding to (/etc/hosts) : 192.168.33.10 test0114.local # VAGRANT: 94c1170eb80690740d77cc2bfe2a0e8e (default) / b5891044-c120-4db6-bcdf-a5a9f0889bc9
MatsuoShoko-no-MacBook-Pro:0114 showw$

——————————————————
That’s all.
www/wordpress is empty.
It seems that processing is over on the way.

I think it is strange,when I try to use the same vagrantfile, sometimes succeed.
Could you give me some advice for me?

I use VirtualBox 4.3.8,Vagrant 1.5.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.