Difference between #33 and #34 of
Yii v2 snippet guide III

Revision #34 has been created by rackycz on Feb 12, 2021, 9:50:39 AM with the memo:

Vagrant
« previous (#33) next (#35) »

Changes

Title unchanged

Yii v2 snippet guide III

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,yii2,beginer

Content changed

[...]
echo "xdebug.remote_autostart=1" | sudo tee -a /etc/php/7.0/apache2/php.ini
echo "xdebug.remote_log=/var/www/public/xdebug.log" | sudo tee -a /etc/php/7.0/apache2/php.ini
echo "xdebug.remote_connect_back=1" | sudo tee -a /etc/php/7.0/apache2/php.ini
echo "xdebug.idekey=netbeans-xdebug" | sudo tee -a /etc/php/7.0/apache2/php.ini

# Note:
 
# Use this if remote_connect_back does not work. 
 
# IP must correspond to the Vagrantfile, only the last number must be 1
 
#echo "xdebug.remote_handler=dbgp" | sudo tee -a /etc/php/7.0/apache2/php.ini
 
#echo "xdebug.remote_host=11.22.33.1" | sudo tee -a /etc/php/7.0/apache2/php.ini 
 
 
sudo service apache2 restart
```

... so create both files in your project ...

Before you use Vagrantfile, you must install Vagrant and VirtualBox (Sadly, these days VirtualBox does not work on the ARM-based Macs with the M1 chip):
[...]
8 0
4 followers
Viewed: 164 776 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Jan 21, 2021
Last updated: 9 months ago
Update Article

Revisions

View all history