Giter VIP home page Giter VIP logo

vagrant-php-stack's Introduction

Vagrant-PHP-Stack

A kick-ass Vagrant Stack for PHP developer.

Installation

Quick start

FAQ

I got this error: RuntimeError: Couldn't determine Berks version

  • try to run export PATH='/opt/chefdk/bin:'$PATH and add it in your .bashrc/.zshrc file , then run again.

I got this error: Operation timed out - connect(2) for "s3.amazonaws.com" port 443 (Errno::ETIMEDOUT)

  • It's because that your network connection to Amazon S3 is poor, try to use vpn or use a fixed ip for s3.amazonaws.com in hosts file.

I'm stuck at retrieving box file,what should I do?

  • download box file by thunder or somthing else, the url will be https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/1/providers/virtualbox.box
  • use the command to add the box locally vagrant box add "ubuntu/trusty64" /path/to/virtualbox.box

I'm stuck at retrieving the chef****.deb (for example chef_11.16.4-1_amd64.deb) file at amazone s3,you can do somthing like this:

  • download the file from anywhere else (for example by thunder)
  • put it into ~/.vagrant.d/cache/ubuntu/trusty64/vagrant_omnibus
  • done.

I got this error : ERROR: You must specify at least one cookbook repo path

  • try to vagrant reload --provision
  • If it's not working, delete your ~/.vagrant.d folder and try vagrant reload --provision again.

Root Privilege Requirement (refs: http://docs.vagrantup.com/v2/synced-folders/nfs.html)

To configure NFS, Vagrant must modify system files on the host. Therefore, at some point during the vagrant up sequence, you may be prompted for administrative privileges (via the typical sudo program). These privileges are used to modify /etc/exports as well as to start and stop the NFS server daemon.

If you don't want to type your password on every vagrant up, Vagrant uses thoughtfully crafted commands to make fine-grained sudoers modifications possible to avoid entering your password.

Below, we have a couple example sudoers entries. Note that you may have to modify them slightly on certain hosts because the way Vagrant modifies /etc/exports changes a bit from OS to OS.

For OS X, sudoers should have this entry:

Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports
%admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE

For Linux, sudoers should look like this:

Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
Cmnd_Alias VAGRANT_NFSD_CHECK = /etc/init.d/nfs-kernel-server status
Cmnd_Alias VAGRANT_NFSD_START = /etc/init.d/nfs-kernel-server start
Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -r -e * d -ibak /etc/exports
%sudo ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY, VAGRANT_EXPORTS_REMOVE

Contributing

not one yet, pr is welcome !

vagrant-php-stack's People

Contributors

orthographic-pedant avatar scourgen avatar

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

vagrant-php-stack's Issues

Sugestion

It is a great tool. But it is not easy to enable the whole project at the first time without any user guide. Suggest adding some instructions.

e.g.

  1. change the soft link www-public
  2. add /opt/chefdk/bin:$path in the env path

==> my-project: The cookbook path '/Users/ryan/work/myteam/symfony2/Vagrant-PHP-Stack/cookbooks' doesn't exist. Ignoring...

When I try to access http://dev-tools.my-project.local/phpinfo.php in Chrome. It can not work. Would you please tell me how to fix it

an error occured while loading web debug toolbar

Aftrer I created an symfony project(Version 2.8.5) , I visit the front controller file app_dev.php ,an error occurred like the title says. I don't know why, I searched the the solution,but no answer, please help ...THKS

vagrant plugin install vagrant-cachier error

Updating installed plugins...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

An error occurred while installing ffi (1.9.10), and Bundler cannot continue.
Make sure that gem install ffi -v '1.9.10' succeeds before bundling.

Gem::RemoteFetcher::FetchError: Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/ffi-1.9.10.gem)

could not find recipe server for cookbook mysql

mysql出现问题,could not find recipe server for cookbook mysql。根据网上资料,说是mysql升级了 The new version (6.0) doesn't provide recipes, just LWRP (mysql_service resource).
应该怎么解决?

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.