Skip to content

Simple-Magento-Vagrant -- ultra light Vagrant development environment for running Magento CMS

Notifications You must be signed in to change notification settings

klierik/simple-magento-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Looking for Magento2 Vagrant environment?

If you interesting about Magento2 Vagrant environment you can find it here

What is that?

Simple-Magento-Vagrant -- ultra light Vagrant development environment for running Magento CMS, based on Ubuntu Precise 64. I create this repo for my self as easyest way install Magento and share with you.

After installation you will get clean Magento 1.9.2.3 with sample data 1.9.1.0. You can re-configure for personal use in you development. See How to use and/or customize section for more information.

What do you get?

  • Ubuntu 14.04 + Apache2 + Php5 + MySQL 5.5.x
  • Magento 1.9.2.3 with sample data 1.9.1.0
  • Adminer 3.7.1(formerly phpMinAdmin)

Folders structure:

$ tree -L 2
.
├── README.md
├── magento
└── vagrant
    ├── httpdocs 
    ├── Vagrantfile 
    └── bootstrap.sh

Requirements:

Default configuration

File system:

nfs: true
mount_options: ["nolock", "async"]
bsd__nfs_options: ["alldirs","async","nolock"]
config.nfs.map_uid = 0
config.nfs.map_gid = 0

VirtualBox settings:

Memory adn CPU cores by default: 1/8 of all memory and all cores (for Windows user 2 cores and 1024 memory) Network host-guest configuration:

config.vm.network :forwarded_port, guest: 80, host: 8999
config.vm.network :forwarded_port, guest: 22, host: 2299

Magento info and options

DB name: magento

DB user name: magento

DB user password: password

Web server configuration

Server name: simple-magento-vagrant.dev

How to use and/or customize.

It will be work out of box but you can edit configuration if you need.

Change domain name

  1. Open Vagrantfile and use find/replace tool to change "simple-magento-vagrant" ==> "my-personal-magento-site-name" or what you need

  2. Open bootstrap.sh and use find/replace tool to change "simple-magento-vagrant" ==> "my-personal-magento-site-name" or what you need

Change network private ip

Open Vagrant file and find node.vm.network :private_network, ip: '192.168.99.99' ==> change ip

Change forwarded port

Open Vagrantvile and find config.vm.network :forwarded_port, guest: 80, host: 8999 ==> change host port

Change Synced folder

I prefer use different folders for vagrant and project. For example:

.
..
magento    - magento project folder
vagrant    - vagrant folder

That's why i sync my folders in this way config.vm.synced_folder "../magento/", "/vagrant/httpdocs". Change ../magento/ path to folder with your project (it can be relative or absolute url).

How to run?

Download latest Simple-Magento-Vagrant zip archive (and unpack it) or run '$ git clone [email protected]:klierik/simple-magento-vagrant.git' in your test folder. Then go to vagrant folder. For example '$ cd /Volumes/Data/http/htdocs/simple-magento-vagrant/vagrant/' Run $ vagrant up in your vagrant options.

PS: via installation you can be asked for password

After installation is finished open http://simple-magento-vagrant.dev/ in your browser and install Magento.

Good luck ;)

About

Simple-Magento-Vagrant -- ultra light Vagrant development environment for running Magento CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published