在Ubuntu 12.04 Vagrant虚拟机内运行 Laravel4 w/PHP 5.5
A basic Ubuntu 12.04 Vagrant setup with Laravel4 and PHP 5.5. PHP 5.4 w/ Apache 2.2 is available on the php54 branch.
git clone http://github.com/bryannielsen/Laravel4-Vagrant.gitvagrant up inside the newly created directoryNote: You may have to change permissions on the www/app/storage folder to 777 under the host OS
For example: chmod -R 777 www/app/storage/
Some basic information on interacting with the vagrant box
Accessible at http://localhost:8888/phpmyadmin using MySQL access credentials above.
XDebug is included in the build but disabled by default because of the effect it can have on performance.
To enable XDebug:
$use_xdebug = "1" at the beginning of puppet/manifests/phpbase.ppvagrant up or by running the command vagrant provision if the box is already upXDebug Tools
Note: All XDebug settings can be configured in the php.ini template at puppet/modules/php/templates/php.ini.erb
Vagrant is very well documented but here are a few common commands:
vagrant up starts the virtual machine and provisions itvagrant suspend will essentially put the machine to 'sleep' with vagrant resume waking it back upvagrant halt attempts a graceful shutdown of the machine and will need to be brought back with vagrant upvagrant ssh gives you shell access to the virtual machine暂无开放 Issues,或尚未同步最近议题。