Coder Social home page Coder Social logo

php_framework's Introduction

参考文献

パーフェクトPHP 初版第7刷 https://gihyo.jp/book/2010/978-4-7741-4437-5

環境構築参照元

DockerでLAMP環境を構築する https://blog.k-bushi.com/post/tech/container/docker-lamp/ https://github.com/katsuobushiFPGA/docker-lamp

概要

Apache2.4 + PHP7.3 + MySQL8.0 の環境を構築します。

使い方

  1. プロジェクトをクローンします。
git clone https://github.com/katsuobushiFPGA/docker-lamp.git
  1. web/project以下にプロジェクトソースを入れます。
  2. docker-compose.yml の DocumentRootをプロジェクトのDocumentRootに合わせます。(※デフォルトは /var/www/html です。)
args: 
  DOCUMENT_ROOT: /var/www/html

例: project以下の public フォルダをドキュメントルートにする場合、下記のように設定する必要があります。

args: 
  DOCUMENT_ROOT: /var/www/html/public
  1. MySQLの初期データの投入 db/init/1_create_db.sql に使用するデータベース名を記載します。 db/init 以下に .gz 形式のファイルもしくは .sqlファイルを格納します。
  2. Dockerのビルド + 起動
docker-compose up -d
  1. http://localhost もしくは https://localhost でアクセスできます。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.