LoginSignup
2
0

More than 5 years have passed since last update.

Azure App Service 環境で .html ファイルにて PHP を実行する

Last updated at Posted at 2018-01-11

概要

 Azure App Service (WebApps) の組み込みランタイムの1つである PHP は .php 拡張子のコンテンツに対して既定でオンとなっています。今回はこの PHP ランタイムを .html 拡張子に対しても有効にし .html 中に記述されたサーバーサイドスクリプトを実行できるように設定します。

設定手順

1.組み込みの PHP ランタイムモジュールは D:\Program Files (x86)\PHP\ 配下に各バージョンが保存されています。
 image.png

2.[アプリケーション設定] で現在利用している PHP バージョンを確認します。
 image.png

3.同じ [アプリケーション設定] の [ハンドラ マッピング] で上記と同一バージョンのランタイム php-cgi.exe を *.html に設定します。
 image.png

以上で、既存の組み込み PHP ランタイムにて .html コンテンツ中のスクリプトの実行が可能となります。

2
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
2
0