Coder Social home page Coder Social logo

vagrant-debian-php-vm's Introduction

Vagrant: Debian VM (wheezy 64bit) with PHP 5.5.7, MySQL 5.5, Nginx, Redis, MongoDB

Vagrant + Puppet installation of Debian focusing on PHP development.

Introduction

This vagrant/puppet build installs the following:

  • PHP 5.5.7
  • Nginx
  • PHP-FPM
  • Redis
  • Memcached
  • MySQL 5.5.X
  • ElasticSearch
  • RabbitMQ
  • MongoDB

The following PECL extensions are installed as well:

  • amqp
  • curl
  • imagick
  • jsmin
  • memcached
  • mongo
  • redis
  • uuid
  • xdebug
  • xhprof

Installation

The following instructions are specific to OSX.

Requirements

  • OSX 10.8+
  • Vagrant

Install Vagrant

Download and install vagrant (1.2.2+): http://downloads.vagrantup.com

Clone the git repository

Clone the repository in your prefered location, initialize submodules, and update:

$ git clone https://github.com/sqmk/vagrant-debian-php-vm --recursive

--recursive is important, as you want to initialize and update the submodules included in this repo.

Vagrant up

From the root of the directory of the cloned project, vagrant up:

$ cd vagrant-debian-php-vm
$ vagrant up

Note: You may be prompted with your OSX password during the point where NFS is enabled. You must provide your password to proceed.

Usage

The host IP is 192.168.1.121.

The following ports have been exposed for the following services:

  • Nginx: 80
  • ElasticSearch: 9200

vagrant-debian-php-vm's People

Contributors

sqmk 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

Watchers

 avatar  avatar  avatar

vagrant-debian-php-vm's Issues

Error: Could not find dependency Package[php5-cli] for Exec[download composer]

Hi,

I'm trying to deploy your vagrant but when I execute vagrant up command the following error code appears:

Any idea why it can be? Thanks in advance! ;)

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'debian-php-dev'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please make sure the guest additions within the
virtual machine match the version of VirtualBox you have installed on
your host and reload your VM.

Guest Additions Version: 4.2.10
VirtualBox Version: 4.3
[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Exporting NFS shared folders...
Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
[default] Mounting NFS shared folders...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /tmp/vagrant-puppet-1/manifests
[default] -- /tmp/vagrant-puppet-1/modules-0
[default] Running provisioner: puppet...
Running Puppet with site.pp...
stdin: is not a tty
Error: Could not find dependency Package[php5-cli] for Exec[download composer]
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

puppet apply --hiera_config /vagrant/config/hiera.yaml --modulepath '/tmp/vagrant-puppet-1/modules-0' --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/site.pp || [ $? -eq 2 ]

Stdout from the command:



Stderr from the command:

stdin: is not a tty
Error: Could not find dependency Package[php5-cli] for Exec[download composer]

Add GeoIP

Do you have steps for someone to be able to add their own php module like Geoip?

Document IPs/ports

Document ip for the vm, and ports for all services. Ensure to expose ports publicly for development.

Add mongo server

Mongo module is installed, just need to enable/test mongo installation.

Can't up php install problem

Hey,

I'm trying to use this repo to make a vagrant setup but i get a very long vagrant up and it still not working (error throw)

Notice: /Stage[main]/Php::Dev/Package[php5-dev]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Php::Pear/Exec[php::pear::auto_discover]/returns: executed successfully
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[xdebug]/Package[pecl.php.net/xdebug]/ensure: created
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[jsmin]/Package[pecl.php.net/jsmin-beta]/ensure: created
Notice: /Stage[main]/Php::Extension::Curl/Php::Extension[curl]/Package[php5-curl]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Php::Extension::Imagick/Php::Extension[imagick]/Package[php5-imagick]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Php::Extension::Mysql/Php::Extension[mysql]/Package[php5-mysql]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[xhprof]/Package[pecl.php.net/xhprof-beta]/ensure: created
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[memcached]/Package[pecl.php.net/memcached]/ensure: created
Notice: /Stage[main]/Php::Extension::Mcrypt/Php::Extension[mcrypt]/Package[php5-mcrypt]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[mongo]/Package[pecl.php.net/mongo]/ensure: created
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[apcu]/Package[pecl.php.net/apcu-beta]/ensure: created
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[amqp]/Package[pecl.php.net/amqp-1.2.0]/ensure: created
Notice: /Stage[main]/Php::Extension::Redis/Php::Extension[redis]/Package[php5-redis]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Extension[uuid]/Package[pecl.php.net/uuid]/ensure: created
Notice: /Stage[main]/Php::Cli/Php::Config[php-cli]/Augeas[php-php-cli-config]/returns: executed successfully
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-amqp-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-jsmin-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-uuid-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-memcached-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-mongo-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-xdebug-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-xhprof-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Package[php5-fpm]: Dependency Augeas[php-php-extension-apcu-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-amqp-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-jsmin-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-uuid-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-memcached-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-mongo-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-xdebug-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-xhprof-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Service[php5-fpm]: Dependency Augeas[php-php-extension-apcu-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-amqp-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-jsmin-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-uuid-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-memcached-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-mongo-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-xdebug-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-xhprof-config] has failures: true
Notice: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Dependency Augeas[php-php-extension-apcu-config] has failures: true
Notice: Finished catalog run in 1546.21 seconds


Stderr from the command:

stdin: is not a tty
Error: wget --verbose --output-document=/usr/local/src/elasticsearch/elastic-search-0.90.2.deb https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb returned 8 instead of one of [0]
Error: /Stage[main]/Elasticsearch/Wget::Fetch[elasticsearch_deb]/Exec[wget-elasticsearch_deb]/returns: change from notrun to 0 failed: wget --verbose --output-document=/usr/local/src/elasticsearch/elastic-search-0.90.2.deb https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.deb returned 8 instead of one of [0]
Warning: /Stage[main]/Elasticsearch/Exec[elasticsearch installation]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch/Service[elasticsearch]: Skipping because of failed dependencies
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-uuid]/Augeas[php-php-extension-uuid-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-xdebug]/Augeas[php-php-extension-xdebug-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-jsmin]/Augeas[php-php-extension-jsmin-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-mongo]/Augeas[php-php-extension-mongo-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-amqp]/Augeas[php-php-extension-amqp-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-apcu]/Augeas[php-php-extension-apcu-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-memcached]/Augeas[php-php-extension-memcached-config]: Could not evaluate: Save failed with return code false, see debug
Error: /Stage[main]/Php_install/Php_main[php-5.5.7]/Php::Config[php-extension-xhprof]/Augeas[php-php-extension-xhprof-config]: Could not evaluate: Save failed with return code false, see debug
Warning: /Stage[main]/Php::Fpm/Package[php5-fpm]: Skipping because of failed dependencies
Warning: /Stage[main]/Php::Fpm/Service[php5-fpm]: Skipping because of failed dependencies
Warning: /Stage[main]/Php::Fpm/Php::Config[php-fpm]/Augeas[php-php-fpm-config]: Skipping because of failed dependencies

I don't know how to resolve it.

Fix PHP ini creation

Recently, ini creation broke. This might be to how the php deb package was built and where new ini files are created.

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.