Magento-Vagrant-Puppet-Nginx - Installs magento and a nginx server

Overview

Magento-Vagrant-Puppet-Nginx

Installs

  • Magento
  • MySQL
  • PHP
  • PHP-FPM
  • Nginx
  • n98-magerun

Setup

git submodule init
git submodule update
vagrant up

Modify puppet/manifests/base.pp

class { "magento":
  install_magento     => true,
  magento_version     => "magento-ce-1.8.1.0",
  install_sample_data => true
}

Valid Magento Versions:

  • magento-ce-1.6.2.0
  • magento-ce-1.7.0.2
  • magento-ce-1.8.1.0
  • magento-ce-1.9.1.0
  • mageplus-master
  • magento-mirror-1.4.2.0
  • magento-mirror-1.5.1.0
  • magento-mirror-1.6.2.0
  • magento-ce-2.0.0.0-dev

Frontend

After Installation you should can access the shop frontend over port 8080.

http://127.0.0.1:8080

Admin

http://127.0.0.1:8080/admin

Username: admin
Password: password123

To change the admin login you can use n98-magerun.

vagrant ssh
cd /vagrant
n98-magerun.phar admin:user:change-password admin mypassword
Comments
  • Vagrant up error

    Vagrant up error

    I got this:

    [default] Running provisioner: puppet... Running Puppet with base.pp... stdin: is not a tty Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt at /tmp/vagrant-puppet/manifests/base.pp:5 on node precise64.home The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

    puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' --detailed-exitcodes /tmp/vagrant-puppet/manifests/base.pp || [ $? -eq 2 ]

    bug 
    opened by javar 3
  • Forbidden

    Forbidden

    I'm receiving a 403 Forbidden message when trying to access http://127.0.0.1:8080 from the host machine and a 500 Internal Server Error when trying to access http://127.0.0.1:8080/admin.

    How can I fix this?

    by the way your work is awesome, thank you.

    opened by aguimaraes 2
  • Release the

    Release the "magento" puppet module directly?

    Hi,

    Would you consider releasing the magento puppet module from within this code as a puppet module directly? Would there be any reason to not do that or not use that?

    Thanks in advance, Tommy

    opened by TJM 2
  • Magento not up

    Magento not up

    Hi Thanks for a great tool!

    After running vagrant up and logging in into VM I was trying to see magento running but got error

    a:4:{i:0;s:49:"SQLSTATE[42000] [1049] Unknown database 'magento'";i:1;s:2707:"#0 /vagrant_data/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /vagrant_data/lib/Varien/Db/Adapter/Pdo/Mysql.php(313): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /vagrant_data/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect() #3 /vagrant_data/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array) #4 /vagrant_data/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array) #5 /vagrant_data/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8') #6 /vagrant_data/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element)) #7 /vagrant_data/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write') #8 /vagrant_data/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write') #9 /vagrant_data/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter() #10 /vagrant_data/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter() #11 /vagrant_data/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection() #12 /vagrant_data/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website)) #13 /vagrant_data/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website)) #14 /vagrant_data/app/Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website)) #15 /vagrant_data/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website)) #16 /vagrant_data/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection() #17 /vagrant_data/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection() #18 /vagrant_data/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores() #19 /vagrant_data/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store') #20 /vagrant_data/app/Mage.php(683): Mage_Core_Model_App->run(Array) #21 /vagrant_data/index.php(87): Mage::run('', 'store') #22 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}

    I can confirm that there are only those dbs:

    vagrant@ubuntu:/vagrant_data$ mysql -u root -proot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 38 Server version: 5.5.34-0ubuntu0.12.04.1 (Ubuntu)

    Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

    Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | test | +--------------------+ 4 rows in set (0.00 sec)

    opened by mszterlingfsite 1
  • vagrant errors

    vagrant errors

    Hi, tnx for your work first of all. I did find the following when I did a vagrant up (after having done the previous steps in your docs of course):

    warning: require is a metaparam; this value will inherit to all contained resources warning: notify is a metaparam; this value will inherit to all contained resources warning: Dynamic lookup of $location_options at /tmp/vagrant-puppet-1/modules-0/nginx/templates/vhost/vhost_location_directory.erb:13 is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes. warning: Dynamic lookup of $location_options at /tmp/vagrant-puppet-1/modules-0/nginx/templates/vhost/vhost_location_directory.erb:14 is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes.

    Then this one:

    err: /Stage[main]/N98magerun::Install/Exec[install magento]/returns: change from notrun to 0 failed: /usr/bin/env php /usr/local/bin/n98-magerun.phar install --magentoVersionByName='magento-ce-1.8.1.0' --installationFolder='/vagrant_data' --dbHost='localhost' --dbUser='root' --dbPass='root' --dbName='magento' --installSampleData='yes' --useDefaultConfigParams='yes' --replaceHtaccessFile='' --baseUrl='http://127.0.0.1:8080' returned 1 instead of one of [0] at /tmp/vagrant-puppet-1/modules-0/n98magerun/manifests/install.pp:37

    And furthur up this one:

    The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

    puppet apply --modulepath '/tmp/vagrant-puppet-1/modules-0:/etc/puppet/modules' --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/base.pp || [ $? -eq 2 ]

    Stdout from the command:

    warning: require is a metaparam; this value will inherit to all contained resources warning: notify is a metaparam; this value will inherit to all contained resources warning: Dynamic lookup of $location_options at /tmp/vagrant-puppet-1/modules-0/nginx/templates/vhost/vhost_location_directory.erb:13 is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes. warning: Dynamic lookup of $location_options at /tmp/vagrant-puppet-1/modules-0/nginx/templates/vhost/vhost_location_directory.erb:14 is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes.

    All the others were notices

    opened by Morriz 4
Owner
Christian Münch
Lead Developer at netz98/valantic in Germany (mostly Magento projects). Creator of n98-magerun.
Christian Münch
Chef-magento - Installs and Configures a Magento project

Description Requirements Chef 0.10.0 or higher required (for Chef environment use). Platform Debian, Ubuntu CentOS, Red Hat, Fedora Your basebox must

Inviqa 3 Jun 30, 2020
A Composer Package which installs the PhantomJS binary (Linux, Windows, Mac) into /bin of your project.

phantomjs-installer A Composer package which installs the PhantomJS binary (Linux, Windows, Mac) into /bin of your project. Table of Contents Installa

Jens A. Koch 149 Nov 8, 2022
Vagrant Box for Magento 2 Developers

Vagrant project for Magento 2 developers (optimized for Mac, Windows and *nix hosts) ⚠️ Current project is not supported anymore. Please check out htt

Alex Paliarush 452 Oct 18, 2022
MageVagrant - Vagrant/Chef base box for running Magento

MageVagrant MageVagrant is a complete LAMP development environment for Magento. Specially created for the Magento Developer's Guide book. Features Aut

null 59 Sep 28, 2021
Provides a foundation for developing with Magento Commerce in a Vagrant box

Provides a foundation for developing with Magento Commerce in a Vagrant box. The machine is based on CentOS 6.4. ==== List of installed software. Mage

Jason Evans 19 May 12, 2017
Simple Magento 2 Vagrant Box

Magento2 Vagrant Box A simple way to get magento2 up and running. It consists of a Debian Wheezy box provised via Puppet. The provider is Virtual Box.

beeplogic 253 Sep 30, 2022
This a php environment for developers. based on Vagrant & CentOS & laravel/homestead

Centstead 这是一个 PHP 调试环境 , 基于 centos,laravel/homestead. 介绍   基于开发的实际需求,PHP开发者通常需要一个贴近生产环境,又易于维护的测试与开发环境.以往的选择: xampp, wamp, phpstudy… 集成环境,启动方便,占用小,但是需

JasonChang 52 Sep 30, 2022
Docker-magento2 - 🐳 Docker containers with all required Magento 2 dependencies installed available as FPM through Nginx and CLI

Magento 2 Docker A collection of Docker images for running Magento 2 through nginx and on the command line. Quick Start cp composer.env.sample compose

Meanbee 454 Dec 27, 2022
Default Nginx config for Magento

Default Nginx config for Magento DEMO: https://www.magenx.com Get cloud server: at DigitalOcean magento Magento upto 1.9.x default magento configurati

MagenX 499 Dec 22, 2022
Here are few exercises to practice how to implement API Security with NGINX App-Protect WAF.

api-security-lab This repo contains files for customers and partners to practice an API Security with NGINX App-Protect WAF. To demonstrate the capabi

null 4 Mar 30, 2022
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 8 | Aws ECS, Google Kubernates, Azure Container Engine

Docker infrastructure for Lumen Description Microservice Lumen is a starting skeleton based on Docker and Lumen Framework. This project helps to devel

Fabrizio Cafolla 218 Sep 25, 2022
Like Cloud Drive Run on Raspbian + Nginx + PHP

Raspberry-Pi-Cloud Like Cloud Drive Run on Raspbian + Nginx + PHP I Made a Project Called Raspberry-Pi-Cloud. it's on testing stage help me to test it

null 1 Dec 25, 2021
Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)

COPS COPS stands for Calibre OPDS (and HTML) Php Server. See : COPS's home for more details. Don't forget to check the Wiki. Why ? In my opinion Calib

Sébastien Lucas 1.3k Jan 1, 2023
This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

PHP-introduction This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

Tyler Jacques 1 Jan 6, 2022
A tool that allows to quickly export data from Magento 1 and Magento 2 store and import it back into Magento 2

Simple Import / Export tool A tool that allows to quickly export data from Magento 1 and Magento 2 store and import it back into Magento 2. Table data

EcomDev B.V. 51 Dec 5, 2022
For server-to-server comms from PHP to CloudKit.

CloudKit-PHP Today I found this fantastic gist by Mauricevb that demonstrates how to communicate with CloudKit from PHP. I already had a previous proj

Tim Oliver 1 Oct 14, 2021
A plugin that allows you to hear the sound "Welcome to the server!" when you join the server by NhanAZ for PocketMine-MP

General A plugin that allows you to hear the sound "Welcome to the server!" when you join the server by NhanAZ for PocketMine-MP Contacts You can cont

NhanAZ's PocketMine-MP Plugins 10 Sep 27, 2022
Php-rpc-server - JSON RPC server implementation for PHP.

JSON RPC Server implementation for PHP. The json-rpc is a very simple protocol. You can see this by reading the protocol specification. This library i

null 4 Sep 28, 2022