Revision #60 has been created by rackycz on Mar 9, 2021, 10:07:04 PM with the memo:
Vagrant
« previous (#59) next (#61) »
Changes
Title
unchanged
Yii v2 snippet guide III
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,yii2,beginer
Content
changed
[...]
sudo service apache2 restart
```
... so create both files in your project ...
If you want to manually open php.ini and paste this text, you can copy it from here:
```
// sudo nano /etc/php/7.0/apache2/php.ini
[XDebug]
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_log=/var/www/public/xdebug.log
xdebug.remote_connect_back=1
xdebug.idekey=netbeans-xdebug
// Important: Make sure that your IDE has identical settings: idekey and remote_port.
```
Before you use Vagrantfile, you must install Vagrant and VirtualBox.
Note 1: Sadly, these days VirtualBox does not work on the ARM-based Macs with the M1 chip
Note 2: You can use many other virtual systems besides VirtualBox ( see the list of OS images above), but "my" scotch/box is designed only for VirtualBox I think.[...]