viccherubini / expert-php-deployments Goto Github PK
View Code? Open in Web Editor NEWExample application to go along with the book Expert PHP Deployments.
Home Page: https://leftnode.org/posts/expert-php-deployments.html
Example application to go along with the book Expert PHP Deployments.
Home Page: https://leftnode.org/posts/expert-php-deployments.html
Hi
I have buy "Expert PHP Deployments" book and executed vagrant up
for your Vagrantfile from this repository on Windows 7 x64 with VirtualBox 4.2.18 and Vagrant 1.3.5.
And it failed in some of final stages. See console log:
D:\server\home\localhost\www\vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'precise64' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Extracting box...ate: 733k/s, Estimated time remaining: --:--:--)
Successfully added box 'precise64' with provider 'virtualbox'!
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 8000 => 8000 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.
If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run vagrant up
while the
VirtualBox GUI is open.
Can you please tell me what I'm doing wrong?
Thank you!
Just in case you're not aware:
Hope that helps! I wanted to point a Stack Overflow user to this today, so if you can bring it back up, I should much appreciate it.
Maybe it would be more stable to install software using packages? At least for the book purposes.
==> default: Selecting previously unselected package uuid.
==> default: Unpacking uuid (from .../uuid_1.6.2-1.1build3_amd64.deb) ...
==> default: Selecting previously unselected package libkrb5-dev.
==> default: Unpacking libkrb5-dev (from .../libkrb5-dev_1.10+dfsg~beta1-2ubuntu0.6_amd64.deb) ...
==> default: Processing triggers for install-info ...
==> default: Processing triggers for man-db ...
==> default: Setting up python (2.7.3-0ubuntu2.2) ...
==> default: Setting up libkrb5support0 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libk5crypto3 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libkrb5-3 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libgssapi-krb5-2 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libgssrpc4 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libkadm5clnt-mit8 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libkdb5-6 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libkadm5srv-mit8 (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ...
==> default: Setting up libexpat1 (2.0.1-7.2ubuntu1.1) ...
==> default: Setting up libxslt1.1 (1.1.26-8ubuntu1.3) ...
==> default: Setting up comerr-dev (2.1-1.42-1ubuntu2.2) ...
==> default: Setting up krb5-multidev (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Setting up libexpat1-dev (2.0.1-7.2ubuntu1.1) ...
==> default: Setting up libossp-uuid16 (1.6.2-1.1build3) ...
==> default: Setting up libossp-uuid-dev (1.6.2-1.1build3) ...
==> default: Setting up libxml2-dev (2.7.8.dfsg-5.1ubuntu4.11) ...
==> default: Setting up libxslt1-dev (1.1.26-8ubuntu1.3) ...
==> default: Setting up python2.7-dev (2.7.3-0ubuntu3.6) ...
==> default: Setting up python-dev (2.7.3-0ubuntu2.2) ...
==> default: Setting up uuid (1.6.2-1.1build3) ...
==> default: Setting up libkrb5-dev (1.10+dfsg~beta1-2ubuntu0.6) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: Reading package lists...
==> default: Building dependency tree...
==> default:
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default: automake autotools-dev libgcrypt11 libgcrypt11-dev libgnutls-dev
==> default: libgnutls-openssl27 libgnutls26 libgnutlsxx27 libgpg-error-dev libidn11-dev
==> default: libldap-2.4-2 libldap2-dev libp11-kit-dev librtmp-dev libtasn1-3
==> default: libtasn1-3-dev pkg-config
==> default: Suggested packages:
==> default: autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtoolgettext
==> default: libcurl3-dbg rng-tools libgcrypt11-doc gnutls-doc gnutls-bin icu-doc mcrypt
==> default: The following NEW packages will be installed:
==> default: autoconf automake autotools-dev libcurl4-openssl-dev libgcrypt11-dev
==> default: libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgpg-error-devlibicu-dev
==> default: libicu48 libidn11-dev libldap2-dev libmcrypt-dev libmcrypt4 libp11-kit-dev
==> default: librtmp-dev libtasn1-3-dev pkg-config
==> default: The following packages will be upgraded:
==> default: libgcrypt11 libgnutls26 libldap-2.4-2 libtasn1-3
==> default: 4 upgraded, 19 newly installed, 0 to remove and 161 not upgraded.
==> default: Need to get 24.0 MB of archives.
==> default: After this operation, 68.6 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11 amd64 1.5.0-3ubuntu0.4 [282 kB]
==> default: Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3 amd64 2.10-1ubuntu1.4 [43.6 kB]
==> default: Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls26 amd64 2.12.14-5ubuntu3.9 [459 kB]
==> default: Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libldap-2.4-2 amd64 2.4.28-1.1ubuntu4.5 [185 kB]
==> default: Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-openssl27 amd64 2.12.14-5ubuntu3.9 [21.6 kB]
==> default: Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutlsxx27 amd64 2.12.14-5ubuntu3.9 [22.6 kB]
==> default: Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main autoconf all 2.68-1ubuntu2 [560 kB]
==> default: Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main autotools-dev all 20120210.1ubuntu1 [42.4 kB]
==> default: Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/main automake all 1:1.11.3-1ubuntu2 [571 kB]
==> default: Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main pkg-config amd64 0.26-1ubuntu1 [40.9 kB]
==> default: Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main libidn11-dev amd64 1.23-2 [636 kB]
==> default: Get:12 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libldap2-dev amd64 2.4.28-1.1ubuntu4.5 [492 kB]
==> default: Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main libgpg-error-dev amd64 1.10-2ubuntu1 [23.3 kB]
==> default: Get:14 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11-dev amd64 1.5.0-3ubuntu0.4 [364 kB]
==> default: Get:15 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3-dev amd64 2.10-1ubuntu1.4 [357 kB]
==> default: Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/main libp11-kit-dev amd64 0.12-2ubuntu1 [45.6 kB]
==> default: Get:17 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls-dev amd64 2.12.14-5ubuntu3.9 [546 kB]
==> default: Get:18 http://us.archive.ubuntu.com/ubuntu/ precise/main librtmp-dev amd64 2.4~20110711.gitc28f1bab-1 [67.3 kB]
==> default: Get:19 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl4-openssl-dev amd64 7.22.0-3ubuntu4.14 [1,085 kB]
==> default: Get:20 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libicu48 amd64 4.8.1.1-3ubuntu0.5 [8,141 kB]
==> default: Get:21 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libicu-dev amd64 4.8.1.1-3ubuntu0.5 [9,827 kB]
==> default: Get:22 http://us.archive.ubuntu.com/ubuntu/ precise/universe libmcrypt4 amd64 2.5.8-3.1 [87.6 kB]
==> default: Get:23 http://us.archive.ubuntu.com/ubuntu/ precise/universe libmcrypt-dev amd64 2.5.8-3.1 [129 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 24.0 MB in 25s (931 kB/s)
==> default: (Reading database ...
==> default: 55214 files and directories currently installed.)
==> default: Preparing to replace libgcrypt11 1.5.0-3 (using .../libgcrypt11_1.5.0-3ubuntu0.4_amd64.deb) ...
==> default: Unpacking replacement libgcrypt11 ...
==> default: Preparing to replace libtasn1-3 2.10-1ubuntu1 (using .../libtasn1-3_2.10-1ubuntu1.4_amd64.deb) ...
==> default: Unpacking replacement libtasn1-3 ...
==> default: Preparing to replace libgnutls26 2.12.14-5ubuntu3 (using .../libgnutls26_2.12.14-5ubuntu3.9_amd64.deb) ...
==> default: Unpacking replacement libgnutls26 ...
==> default: Preparing to replace libldap-2.4-2 2.4.28-1.1ubuntu4 (using .../libldap-2.4-2_2.4.28-1.1ubuntu4.5_amd64.deb) ...
==> default: Unpacking replacement libldap-2.4-2 ...
==> default: Selecting previously unselected package libgnutls-openssl27.
==> default: Unpacking libgnutls-openssl27 (from .../libgnutls-openssl27_2.12.14-5ubuntu3.9_amd64.deb) ...
==> default: Selecting previously unselected package libgnutlsxx27.
==> default: Unpacking libgnutlsxx27 (from .../libgnutlsxx27_2.12.14-5ubuntu3.9_amd64.deb) ...
==> default: Selecting previously unselected package autoconf.
==> default: Unpacking autoconf (from .../autoconf_2.68-1ubuntu2_all.deb) ...
==> default: Selecting previously unselected package autotools-dev.
==> default: Unpacking autotools-dev (from .../autotools-dev_20120210.1ubuntu1_all.deb) ...
==> default: Selecting previously unselected package automake.
==> default: Unpacking automake (from .../automake_1%3a1.11.3-1ubuntu2_all.deb)...
==> default: Selecting previously unselected package pkg-config.
==> default: Unpacking pkg-config (from .../pkg-config_0.26-1ubuntu1_amd64.deb)...
==> default: Selecting previously unselected package libidn11-dev.
==> default: Unpacking libidn11-dev (from .../libidn11-dev_1.23-2_amd64.deb) ...
==> default: Selecting previously unselected package libldap2-dev.
==> default: Unpacking libldap2-dev (from .../libldap2-dev_2.4.28-1.1ubuntu4.5_amd64.deb) ...
==> default: Selecting previously unselected package libgpg-error-dev.
==> default: Unpacking libgpg-error-dev (from .../libgpg-error-dev_1.10-2ubuntu1_amd64.deb) ...
==> default: Selecting previously unselected package libgcrypt11-dev.
==> default: Unpacking libgcrypt11-dev (from .../libgcrypt11-dev_1.5.0-3ubuntu0.4_amd64.deb) ...
==> default: Selecting previously unselected package libtasn1-3-dev.
==> default: Unpacking libtasn1-3-dev (from .../libtasn1-3-dev_2.10-1ubuntu1.4_amd64.deb) ...
==> default: Selecting previously unselected package libp11-kit-dev.
==> default: Unpacking libp11-kit-dev (from .../libp11-kit-dev_0.12-2ubuntu1_amd64.deb) ...
==> default: Selecting previously unselected package libgnutls-dev.
==> default: Unpacking libgnutls-dev (from .../libgnutls-dev_2.12.14-5ubuntu3.9_amd64.deb) ...
==> default: Selecting previously unselected package librtmp-dev.
==> default: Unpacking librtmp-dev (from .../librtmp-dev_2.4~20110711.gitc28f1bab-1_amd64.deb) ...
==> default: Selecting previously unselected package libcurl4-openssl-dev.
==> default: Unpacking libcurl4-openssl-dev (from .../libcurl4-openssl-dev_7.22.0-3ubuntu4.14_amd64.deb) ...
==> default: Selecting previously unselected package libicu48.
==> default: Unpacking libicu48 (from .../libicu48_4.8.1.1-3ubuntu0.5_amd64.deb) ...
==> default: Selecting previously unselected package libicu-dev.
==> default: Unpacking libicu-dev (from .../libicu-dev_4.8.1.1-3ubuntu0.5_amd64.deb) ...
==> default: Selecting previously unselected package libmcrypt4.
==> default: Unpacking libmcrypt4 (from .../libmcrypt4_2.5.8-3.1_amd64.deb) ...
==> default: Selecting previously unselected package libmcrypt-dev.
==> default: Unpacking libmcrypt-dev (from .../libmcrypt-dev_2.5.8-3.1_amd64.deb) ...
==> default: Processing triggers for man-db ...
==> default: Processing triggers for install-info ...
==> default: Setting up libgcrypt11 (1.5.0-3ubuntu0.4) ...
==> default: Setting up libtasn1-3 (2.10-1ubuntu1.4) ...
==> default: Setting up libgnutls26 (2.12.14-5ubuntu3.9) ...
==> default: Setting up libldap-2.4-2 (2.4.28-1.1ubuntu4.5) ...
==> default: Setting up libgnutls-openssl27 (2.12.14-5ubuntu3.9) ...
==> default: Setting up libgnutlsxx27 (2.12.14-5ubuntu3.9) ...
==> default: Setting up autoconf (2.68-1ubuntu2) ...
==> default: Setting up autotools-dev (20120210.1ubuntu1) ...
==> default: Setting up automake (1:1.11.3-1ubuntu2) ...
==> default: update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.
==> default: Setting up pkg-config (0.26-1ubuntu1) ...
==> default: Setting up libidn11-dev (1.23-2) ...
==> default: Setting up libldap2-dev (2.4.28-1.1ubuntu4.5) ...
==> default: Setting up libgpg-error-dev (1.10-2ubuntu1) ...
==> default: Setting up libgcrypt11-dev (1.5.0-3ubuntu0.4) ...
==> default: Setting up libtasn1-3-dev (2.10-1ubuntu1.4) ...
==> default: Setting up libp11-kit-dev (0.12-2ubuntu1) ...
==> default: Setting up libgnutls-dev (2.12.14-5ubuntu3.9) ...
==> default: Setting up librtmp-dev (2.4~20110711.gitc28f1bab-1) ...
==> default: Setting up libcurl4-openssl-dev (7.22.0-3ubuntu4.14) ...
==> default: Setting up libicu48 (4.8.1.1-3ubuntu0.5) ...
==> default: Setting up libicu-dev (4.8.1.1-3ubuntu0.5) ...
==> default: Setting up libmcrypt4 (2.5.8-3.1) ...
==> default: Setting up libmcrypt-dev (2.5.8-3.1) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default:
==> default: Current default time zone: 'Etc/UTC'
==> default: Local time is now: Mon Jun 8 20:31:07 UTC 2015.
==> default: Universal Time is now: Mon Jun 8 20:31:07 UTC 2015.
==> default: Generating locales...
==> default: en_US.UTF-8...
==> default: up-to-date
==> default: Generation complete.
==> default: tar (child): ruby-2.0.0-p247.tar.gz: Cannot open: No such file or directory
==> default: tar (child): Error is not recoverable: exiting now
==> default: tar: Child returned status 2
==> default: tar: Error is not recoverable: exiting now
==> default: /tmp/vagrant-shell: line 44: cd: ruby-2.0.0-p247: No such file or directory
==> default: /tmp/vagrant-shell: line 45: ./configure: No such file or directory
==> default: make: *** No targets specified and no makefile found. Stop.
==> default: Successfully installed net-ssh-2.9.2
==> default: Successfully installed net-sftp-2.1.2
==> default: Successfully installed net-scp-1.2.1
==> default: Successfully installed capistrano-2.15.5
==> default: 4 gems installed
==> default: Installing ri documentation for net-ssh-2.9.2...
==> default: Installing ri documentation for net-sftp-2.1.2...
==> default: Installing ri documentation for net-scp-1.2.1...
==> default: Installing ri documentation for capistrano-2.15.5...
==> default: Installing RDoc documentation for net-ssh-2.9.2...
==> default: Installing RDoc documentation for net-sftp-2.1.2...
==> default: Installing RDoc documentation for net-scp-1.2.1...
==> default: Installing RDoc documentation for capistrano-2.15.5...
==> default: tar (child): postgresql-9.2.4.tar.bz2: Cannot open: No such file or directory
==> default: tar (child): Error is not recoverable: exiting now
==> default: tar: Child returned status 2
==> default: tar: Error is not recoverable: exiting now
==> default: /tmp/vagrant-shell: line 55: cd: postgresql-9.2.4: No such file or directory
==> default: /tmp/vagrant-shell: line 56: ./configure: No such file or directory
==> default: make: *** No rule to make target `world'. Stop.
==> default: -su: initdb: command not found
==> default: update-rc.d: warning: /etc/init.d/postgres missing LSB information
==> default: update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
==> default: Adding system startup for /etc/init.d/postgres ...
==> default: /etc/rc0.d/K20postgres -> ../init.d/postgres
==> default: /etc/rc1.d/K20postgres -> ../init.d/postgres
==> default: /etc/rc6.d/K20postgres -> ../init.d/postgres
==> default: /etc/rc2.d/S20postgres -> ../init.d/postgres
==> default: /etc/rc3.d/S20postgres -> ../init.d/postgres
==> default: /etc/rc4.d/S20postgres -> ../init.d/postgres
==> default: /etc/rc5.d/S20postgres -> ../init.d/postgres
==> default: -su: createuser: command not found
==> default: -su: createdb: command not found
==> default: tar (child): redis-2.8.0.tar.gz: Cannot open: No such file or directory
==> default: tar (child): Error is not recoverable: exiting now
==> default: tar: Child returned status 2
==> default: tar: Error is not recoverable: exiting now
==> default: /tmp/vagrant-shell: line 78: cd: redis-2.8.0: No such file or directory
==> default: make: *** No targets specified and no makefile found. Stop.
==> default: cp: cannot stat `redis.conf': No such file or directory
==> default: sed: can't read /etc/redis/redis.conf: No such file or directory
==> default: update-rc.d: warning: /etc/init.d/redis missing LSB information
==> default: update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
==> default: Adding system startup for /etc/init.d/redis ...
==> default: /etc/rc0.d/K20redis -> ../init.d/redis
==> default: /etc/rc1.d/K20redis -> ../init.d/redis
==> default: /etc/rc6.d/K20redis -> ../init.d/redis
==> default: /etc/rc2.d/S20redis -> ../init.d/redis
==> default: /etc/rc3.d/S20redis -> ../init.d/redis
==> default: /etc/rc4.d/S20redis -> ../init.d/redis
==> default: /etc/rc5.d/S20redis -> ../init.d/redis
==> default: tar (child): php-5.5.4.tar.gz: Cannot open: No such file or directory
==> default: tar (child): Error is not recoverable: exiting now
==> default: tar: Child returned status 2
==> default: tar: Error is not recoverable: exiting now
==> default: /tmp/vagrant-shell: line 96: cd: php-5.5.4: No such file or directory
==> default: /tmp/vagrant-shell: line 97: ./configure: No such file or directory
==> default: make: *** No targets specified and no makefile found. Stop.
==> default: cp: cannot stat `php.ini-development': No such file or directory
==> default: Cloning into 'phpredis'...
==> default: /tmp/vagrant-shell: line 104: phpize: command not found
==> default: /tmp/vagrant-shell: line 105: ./configure: No such file or directory
==> default: make: *** No targets specified and no makefile found. Stop.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.