0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

サクッとSymfony環境構築

Posted at

目的

WindowsにSymfony開発環境を構築する。

開発環境

  • OS:Windows 11
  • サーバ:MAMP for Windows
  • PHP:8.3.1
  • Symfony:5
  • エディタ:Visual Studio Code

事前準備

1, MAMPを公式サイトからダウンロード・インストール。

2, Visual Studio Codeを公式サイトからダウンロード・インストール。


PHPコマンドの設定

  1. MAMPのphp/php.exeのパスを確認。
  2. 「システム環境変数」→「Path」に追加。

Symfonyのインストール

MAMPのドキュメントルート設定

1, MAMP → Preferences → Web Server → Document Root を public フォルダに設定。
2, ブラウザで http://localhost:8889 を開き、ウェルカムページを確認。


MySQL連携

  1. phpMyAdminでデータベースを作成。
  2. .env のDATABASE_URLに以下を設定:
DATABASE_URL="mysql://root:root@127.0.0.1:8889/app?serverVersion=8.0&charset=utf8mb4"

参考・引用

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?