Git Product home page Git Product logo

magento2dev's Introduction

Summary

magento2box is a Vagrant image based on Rasmus Lerdorf's php7dev Vagrant image. It comes preconfigured with PHP 7, Nginx, MySQL 5.6 and a base install of the Magento 2.

Installation

Download and install Virtualbox

Download and install Vagrant

$ git clone [email protected]:RMcLeod79/magento2dev.git

Now copy magento2.box into magento2dev

$ cd magento2dev
...
$ ./setup.sh
...
$ vagrant up
...
$ vagrant ssh
...
$ ./install.sh

Add this to your hosts file:

192.168.7.7 magento2.dev

There are also various vagrant plugins that can help you update your dns. See local-domain-resolution.

At this point you should be able to point your browser at:

http://magento2.dev/

and it should show the Magento 2 Store home page.

Server Setup

The Magento2 files can be found in ./htdocs these are shared to /var/www/magento2 on the guest machine

All passwords on the server (sudo, MySQL root etc.) are vagrant

Magento 2 bug

When you try to login to the admin you will get an error, this error is something to do with config cache. To get round it:

$ vagrant ssh
...
$ cd /var/www/magento2
...
$ rm -rf var/cache

Now refresh the admin page and you will see the dashboard. Try navigating to System -> Cache and you will get the same error again. Remove the cache folder again and refresh you will now see the cache settings, disable config cache and the problem goes away.

The problem is to do with when Magento tries to unserialize the cache data, feel free to find a fix and PR it to Magento

magento2dev's People

Watchers

James Cloos avatar Aydin Hassan avatar  avatar

Forkers

wearejh

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.