<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.cloud.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'install.cloud.azure.php',
    1 => 'Azure App Services',
    2 => 'Azure App Services',
  ),
  'up' => 
  array (
    0 => 'install.cloud.php',
    1 => 'クラウドコンピューティングプラットフォームへのインストール',
  ),
  'prev' => 
  array (
    0 => 'install.cloud.php',
    1 => 'クラウドコンピューティングプラットフォームへのインストール',
  ),
  'next' => 
  array (
    0 => 'install.cloud.ec2.php',
    1 => 'Amazon EC2',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'install/cloud/azure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.cloud.azure" class="sect1">
  <h2 class="title">Azure App Services</h2>
  <p class="para">
    PHP は、Azure App Services (aka Microsoft Azure, Windows Azure, Azure Web Apps) 上でもよく使われています。
  </p>
  <p class="para">
    Azure App Services は、
    ウェブアプリケーションをホストする
    Windows Web Servers のプールを管理します。
    これは 自前の Azure Compute VM
    などで自前のウェブサーバーを管理する方法の代替となるものです。
  </p>
  <p class="para">
   Azure App Services のウェブサイトでは、
   PHP が自動的に有効になっています。
   Azure Portal でウェブサイトを選択すると、
   どのバージョンの PHP を使うかを選ぶことができます。
   デフォルトよりも新しいバージョンを選ぶこともできます。
  </p>

  <p class="para">
   つまり Azure App Services 上では、
   その他の Windows サーバー上と同様に PHP や拡張モジュールが動くということです。

   しかし、Azure App Services の管理インターフェイスは、
   Windows サーバーとは少し異なります。
  </p>

  <ul class="itemizedlist">
    <li class="listitem">
      <p class="para">Azure portal: ウェブサイトの作成や設定変更、削除を行います。<a href="https://portal.azure.com/" class="link external">&raquo;&nbsp;Azure Portal</a>
      </p>
    </li>
    <li class="listitem">
      <p class="para">Kudu Dashboard: <code class="literal"><span class="replaceable">site_name</span>.azurewebsites.net</code> の Kudu dashboard は <code class="literal">https://<span class="replaceable">site_name</span>.scm.azurewebsites.net/</code> です。このダッシュボードには、デバッグやファイル管理そしてサイト拡張といった機能があります。サイト拡張とは、PHP のプレビュー版などの追加プログラムをウェブサイトに追加するための Azure の機構のことです。
      </p>
    </li>
    <li class="listitem">
      <p class="para">IIS Manager や Server Manager や RDP は使えません。</p>
    </li>
  </ul>

  <p class="para">PHP SDK も用意されていて、自分の PHP コードからさまざまな Azure Service を使うことができます。<a href="https://github.com/Azure/azure-sdk-for-php" class="link external">&raquo;&nbsp;Azure SDK for PHP</a> を参照ください。
  </p>
  
  <p class="para">詳細な情報は <a href="https://azure.microsoft.com/en-us/develop/php/" class="link external">&raquo;&nbsp;Azure PHP Developer Center</a> を参照ください。
  </p>

  <div class="sect2">
    <h3 class="title">WinCache</h3>
    <p class="para">
     WinCache は Azure App Services でデフォルトで有効になっています。そのままにしておくことを推奨します。
     もし PHP を自分でビルドするなら、WinCache も有効にしておくべきです。
    </p>
  </div>

  <div class="sect2">
    <h3 class="title">カスタム PHP ビルド</h3>
    <p class="para">
     自分でビルドした PHP を D:\Home
     にアップロードします (C:\ への書き込み権限はありません)。
     そして、Azure Portal で、.php の SCRIPT_PROCESSOR に php-cgi.exe への絶対パスを設定します。
    </p>
  </div>

</div><?php manual_footer($setup); ?>