59 words
1 minutes
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
Setting Up PHP Development Environment with VSCode on Linux
https://b1rdfr0st.github.io/posts/2024-06-04-php-programming-with-vscode-in-linux/
Author
fr0stb1rd
Published at
2024-06-04
License
CC BY-NC-SA 4.0