Giter Club home page Giter Club logo

apache-foreground's Introduction

Foreground apache

Foreground で apache を実行するスクリプト。 仮想環境とか Docker とかいろいろめんどくさいので、brew の環境で使えるざっくりしたものです。 built-in Serverでは使えない .htaccess を使用したいときなどに使います.

使い方

  1. 任意のディレクトリにクローン
  2. config.example.conf をコピーして config.conf を作成
  3. config.conf に設定を記述 (記法は後述)
  4. apache.sh を実行

終わらせ方

ctrl + c で終了.
これをしないとkillコマンドで殺すまで動くので 注意 なんかおかしいときは、ぐるぐるまわる手抜き仕様なので 注意

config.conf の設定

  • SERVER_NAME
    ローカルホストのIPやテストドメインなど設定
  • SERVER_PORT
    ポートを指定(Wellknown Port の場合は、当然 root 必要です。)
  • DOCUMENT_ROOT
    ドキュメントルートのパスを記述(相対パスのときは apache.sh からの位置)
  • PHP_MODULE_PATH
    PHPのモジュールのパスを記載
  • PHP_INCLUDE_PATH
    起動時に読み込むPHPのパスを記載(php の include_path の値と同様の形式)
  • XDEBUG
    2 / 3 を指定してください
  • XDEBUG_REMOTE_HOST
    PHPからのXdebug接続リモートホストアドレス(いわゆるXdebug対応のIDEを起動しているPC)を指定してください。だいたい localhost とか、127.0.0.1 じゃないですかね。
  • XDEBUG_REMOTE_PORT
    IDE側で待ち受け設定している Xdebug のポート番号を指定してください。
  • XDEBUG_IDEKEY
    IDE側で待ち受け設定している Xdebug のIDEKEYを指定してください。

apache-foreground's People

Contributors

abatanx avatar shizumi avatar ciel-yamamoto avatar

Stargazers

Yoko Hino avatar Hiroshi Yamamoto avatar akane todaka avatar  avatar

Watchers

James Cloos avatar  avatar Hiroshi Yamamoto avatar  avatar

Forkers

shizumi

apache-foreground's Issues

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.