install php 7 and add it to your path code example Example: php executable not found visual studio code ubuntu sudo apt-get install php