Post

Setting Up PHP Development Environment with VSCode on Linux

Setting Up PHP Development Environment with VSCode on Linux

Prerequisites

  • Internet connection
  • Linux

Setup

  • Download and install VSCode from here
  • Install php with: apt install php php-cli php-cgi
  • Go to VSCode Settings
  • Make this settings:
    • add this line like photo: "php.validate.executablePath": "/usr/bin/php"
  • Install Extensions:
  • Restart VSCode
  • Create an index.php file, right click an you can see PHP: Serve Project and PHP Server: Stop Serve
  • Open browser and go to localhost
This post is licensed under CC BY 4.0 by the author.