Development box configured to run Magento CE.
- Ubuntu 12.04 LTS
- All Magento CE required PHP extensions installed:
- PDO_MySQL
- simplexml
- mcrypt
- hash
- GD
- Dom
- iconv
- curl
- SOAP
- Other misc packages installed:
- git
- vim
- apc
- Apache virtual host + MySQL database setup
- access via
www.magento.dev
ormagento.dev
on the host machine - database details:
- database: magentodb
- user: magento_user
- password: magento_pass
- database can be accessed from the host machine:
- host: 10.10.10.2
- use user + password above
- root user for the database is:
- user: root
- password: root
- access via
- Composer installed and available globally
- Sample
composer.json
includes:- QA + static analysis tools (
PHPUnit
,PHP_CodeSniffer
etc.) - misc magento dev tools (
n98-magerun
etc.)
- QA + static analysis tools (
- Sample
- XDebug installed and setup to allow remote debugging
- To remote debug use the following values in your ide / debugger:
- host: 10.10.10.2
- remote port: 9000
- ide key: magento_dev
- To remote debug use the following values in your ide / debugger:
- Includes script to install Magento CE 1.8.1.0 + sample data
- n98-magerun used to install magento + sample data
- installation settings can be changed in
.n98-magerun.yaml
- default admin user:
- user: admin
- password: password123
-
A Ruby environment with the following Gems installed:
-
Vagrant >=1.5 with the following plugins installed:
vagrant plugin install vagrant-cachier vagrant plugin install vagrant-omnibus vagrant plugin install vagrant-libraian-chef vagrant plugin install vagrant-vbguest vagrant plugin install vagrant-hostsupdater
Install required Ruby Gems:
bundle install
Setup and provision the box:
vagrant up
Install composer dependencies:
composer install --prefer-dist
Install Magento CE 1.8.1.0 + sample data (make sure you modify the installation settings to suit in .n98-magerun.yaml
before running this!)
vagrant ssh -c "~/install-magento.sh"
You should now be able to access the magento store at http://www.magento.dev
.
I have only tested this on OS X (10.9). In theory it should work on most operating systems, although Windows will probably have a problem using NFS for synced folders. See NFS alternatives here.