Skip to content

Instantly share code, notes, and snippets.

@worawatyao
Last active September 20, 2020 16:23
Show Gist options
  • Select an option

  • Save worawatyao/80297eae30e7f4fdb4b795e5e327dd8e to your computer and use it in GitHub Desktop.

Select an option

Save worawatyao/80297eae30e7f4fdb4b795e5e327dd8e to your computer and use it in GitHub Desktop.

php7

  1. Install the Visual C++ Redistributable for Visual Studio 2019.

  2. Download PHP for Windows. Prefer 7.4 VC15 x64 Non Thread Safe .zip file

  3. Unzip to C:\PHP7.

  4. In the C:\PHP7 folder, rename the file php.ini-development to php.ini.

  5. Edit php.ini.

    • Change memory_limit from 128M to 1G.

    • Uncomment the line that reads ; extension_dir = "ext"

    • Uncomment the following lines: extension=...

      extension=curl
      extension=fileinfo
      extension=gd2
      extension=mbstring
      extension=openssl
      extension=pdo_mysql
      extension=pdo_sqlite
      
  6. Add C:\PHP7 to your Windows system path:

    • Open System Control Panel -> Advanced System Settings -> Environment Variables...
    • Click on the Path row under 'System variables', and click 'Edit...'
    • Click 'New' and add the row C:\PHP7.
  7. Check php ok. Open powershell and type in php -v

Composer

  1. Download the Windows Installer for Composer and run it.
  2. During install, make sure php correct path is set to c:php7\php.exe
  3. Open new powershell.
  4. Run the composer command to see a list of composer help.

MySql

  1. Download mysql. Choose archive version 5.7.
    • Get mysql-installer-community-5.7.30.0.msi
  2. Run an installer.
    • Choose custom setup.
    • Expand MySQL Server and choose MySQL Server 5.7.10.
    • Go to Applications > MySQL Workbench 6.3 and choose workbench
    • Click on Documentation and select MySQL Documentation
    • If any, install any missing requirements. Press execute.
    • Set up MySQL root password. Do not create any user at this time.
    • Setup mysql server as a windows service.

Nodejs

  1. Download nodejs. Choose LTS windows installer.
  2. Run installer, check 'Automatically install neccessary tools'.
  3. Next until finish.

VSCode

  1. Download vscode and install.
  2. Install neccessary extensions:

Laravel

  1. Place composer's system-wide vendor bin into Windows system path.
    • Add '%USERPROFILE%\AppData\Roaming\Composer\vendor\bin'
  2. In powershell, run > composer global require laravel/installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment