You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,7 +40,7 @@ It is easy to [install multiple Magento instances](#multiple-magento-instances)
39
40
[Project initialization script](init_project.sh) configures complete development environment:
40
41
41
42
1. Adds some missing software on the host
42
-
1. Configures all software necessary for Magento 2 using [custom Ubuntu vagrant box](https://atlas.hashicorp.com/paliarush/boxes/magento2.ubuntu) (Apache 2.4, PHP 7.0 (or 5.5.9), MySQL 5.6, Git, Composer, XDebug, Rabbit MQ, Varnish)
43
+
1. Configures all software necessary for Magento 2 using [custom Ubuntu vagrant box](https://atlas.hashicorp.com/paliarush/boxes/magento2.ubuntu) (Apache 2.4, PHP 7.0 (or 5.6), MySQL 5.6, Git, Composer, XDebug, Rabbit MQ, Varnish)
43
44
1. Installs Magento 2
44
45
1. Configures PHP Storm project (partially at the moment)
45
46
@@ -68,7 +69,7 @@ Software listed below should be available in [PATH](https://en.wikipedia.org/wik
68
69
69
70
### Installation steps
70
71
71
-
:information_source: In case of any issues during installation, please read [troubleshooting section](#troubleshooting)
72
+
:information_source: In case of any issues during installation, please read [FAQ section](#faq)
72
73
73
74
1. Open terminal and change directory to the one which you want to contain Magento project.  On Windows use Git Bash, which is available after Git installation
74
75
@@ -129,16 +130,6 @@ Current vagrant project follows [semantic versioning](http://semver.org/spec/v2.
129
130
For example your current branch is `2.0`, then it will be safe to pull any changes from `origin/2.0`. However branch `3.0` will contain changes backward incompatible with `2.0`.
130
131
Note, that semantic versioning is only used for `x.0` branches (not for `develop`).
131
132
132
-
### Troubleshooting
133
-
134
-
1. On OSX and \*nix hosts NFS will be used by default to sync your project files with guest. On some hosts Vagrant cannot configure NFS properly, in this case it is possible to deploy project without NFS by setting `use_nfs` option in [config.yaml](etc/config.yaml.dist) to `0` <br />
135
-
1. On Windows hosts you might face `Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)` exception during `composer install`. This can be fixed in 2 ways: decrease path length to the project directory or set `composer_prefer_source` option in [config.yaml](etc/config.yaml.dist) to `1`
136
-
1. Make sure that you used `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`)
137
-
1. If project opened in PhpStorm looks broken, close PhpStorm and remove `vagrant-magento/.idea`. After opening project in PhpStorm again everything should look good
138
-
1. If code is not synchronized properly on Windows hosts (or when NFS mode is disabled in [config.yaml](etc/config.yaml.dist) explicitly), make sure that PhpStorm is running before making any changes in the code. This is important because otherwise PhpStorm will not be able to detect changes and upload them to the guest machine
139
-
1. Please make sure that currently installed software, specified in [requirements section](#requirements), meets minimum version requirement
140
-
1. If MySQL fails to start and Magento reinstallation fails with `ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)`, try to run login to virtual machine using `vagrant ssh` and then run `sudo dpkg-reconfigure mysql-server-5.6`, then `sudo service mysql restart.`
141
-
142
133
## Day-to-day development scenarios
143
134
144
135
### Reinstall Magento
@@ -230,6 +221,13 @@ Do not edit any symlinks using PhpStorm because it may break your installation.
230
221
231
222
After editing configs in IDE it is still required to restart related services manually.
232
223
224
+
### Multiple Magento instances
225
+
226
+
To install several Magento instances based on different code bases, just follow [Installation steps](#installation-steps) to initialize project in another directory on the host.
227
+
Unique IP address, SSH port and domain name will be generated for each new instance if not specified manually in `etc/config.yaml`
228
+
229
+
## Environment configuration
230
+
233
231
### Switch between PHP 5.6 and 7.0
234
232
235
233
Set "use_php7: 1" for PHP7 and "use_php7: 0" for PHP5.6 in [config.yaml](etc/config.yaml.dist).
@@ -244,11 +242,6 @@ Varnish Version: 3.0.5
244
242
245
243
Note: command m-varnish with arguments disable or enable is also available in guest or host to enable or disable varnish without reloading machine.
246
244
247
-
### Multiple Magento instances
248
-
249
-
To install several Magento instances based on different code bases, just follow [Installation steps](#installation-steps) to initialize project in another directory on the host.
250
-
Unique IP address, SSH port and domain name will be generated for each new instance if not specified manually in `etc/config.yaml`
251
-
252
245
### Reset environment
253
246
254
247
It is possible to reset project environment to default state, which you usually get just after project initialization. The following command will delete vagrant box and vagrant project settings. After that it will initialize project from scratch. Magento 2 code base (`magento2ce` directory) and [etc/config.yaml](etc/config.yaml.dist) and PhpStorm settings will stay untouched, but guest config files (located in [etc/guest](etc/guest)) will be cleared.
@@ -276,3 +269,14 @@ Ultimate project reset can be achieved by combining all available flags:
276
269
```
277
270
bash init_project.sh -fcp
278
271
```
272
+
273
+
### FAQ
274
+
275
+
1. Is Windows 10 supported? Yes, but you may face the same issue as described [here](https://github.com/paliarush/magento2-vagrant-for-developers/issues/36)
276
+
1. On OSX and \*nix hosts NFS will be used by default to sync your project files with guest. On some hosts Vagrant cannot configure NFS properly, in this case it is possible to deploy project without NFS by setting `use_nfs` option in [config.yaml](etc/config.yaml.dist) to `0` <br />
277
+
1. On Windows hosts you might face `Composer Install Error: ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (260)` exception during `composer install`. This can be fixed in 2 ways: decrease path length to the project directory or set `composer_prefer_source` option in [config.yaml](etc/config.yaml.dist) to `1`
278
+
1. Make sure that you used `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`)
279
+
1. If project opened in PhpStorm looks broken, close PhpStorm and remove `vagrant-magento/.idea`. After opening project in PhpStorm again everything should look good
280
+
1. If code is not synchronized properly on Windows hosts (or when NFS mode is disabled in [config.yaml](etc/config.yaml.dist) explicitly), make sure that PhpStorm is running before making any changes in the code. This is important because otherwise PhpStorm will not be able to detect changes and upload them to the guest machine
281
+
1. Please make sure that currently installed software, specified in [requirements section](#requirements), meets minimum version requirement
282
+
1. If MySQL fails to start and Magento reinstallation fails with `ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)`, try to run login to virtual machine using `vagrant ssh` and then run `sudo dpkg-reconfigure mysql-server-5.6`, then `sudo service mysql restart.`
0 commit comments