Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
インストールマニアックス5中間セミナー Windows Azureでphpアプリを動かすための...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kuniteru Asami
May 29, 2011
Programming
55
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
インストールマニアックス5中間セミナー Windows Azureでphpアプリを動かすためのtips
Kuniteru Asami
May 29, 2011
More Decks by Kuniteru Asami
See All by Kuniteru Asami
Azure App Service / Container Apps の組み込み認証
kuniteru
0
270
Azure Load Testing と Azure用 Jmeter Plugins
kuniteru
0
36
どう買う?Azure
kuniteru
1
760
スケールアウトできるManaged RDBMS - Azure Cosmos DB for PostgreSQL
kuniteru
0
140
現場からみた Azure リファレンスアーキテクチャ答え合わせ | Microsoft Build 2022
kuniteru
1
86
Azure Load Testingを利用したパフォーマンステスト
kuniteru
1
91
Understanding Azure Application Gateway
kuniteru
0
70
堅牢&運用楽々な WordPress を Azure App Service で
kuniteru
0
170
Azure PaaS とのよりセキュアな接続 - 初級編
kuniteru
0
72
Other Decks in Programming
See All in Programming
sbt 2.0: takeoff
eed3si9n
0
120
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
150
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
650
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
550
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
380
パスワード再設定メールのURLについて知っておこう
uyuki234
0
120
phperだってパンチカードでコーディングしたい
o0h
PRO
0
270
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
140
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
3k
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
350
プロダクトコードからライブラリの境界を見つける
elmetal
PRO
0
110
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
4
530
How to train your dragon (web standard)
notwaldorf
96
6.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
How STYLIGHT went responsive
nonsquared
100
6.3k
Git: the NoSQL Database
bkeepers
PRO
433
67k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
520
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Mind Mapping
helmedeiros
1
400
The Invisible Side of Design
smashingmag
301
52k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Leo the Paperboy
mayatellez
10
2.4k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
Transcript
2011/05/28 浅見 城輝 http://www.asami.asia/ Copyright 2011 Kuniteru Asami 1
浅見 城輝 個人事業主 (2006年8月に独立) http://www.asami.asia/ Windows Azure導入支援 ◦ LAMPからWindows
Azureへの移行 データベース関連サービス ◦ パフォーマンスチューニングが得意 サーバー構築 Webアプリケーション開発 インストールマニアックス2008ドキュメント賞 元々はUNIX/Linux+Oracleな人 実はWindowsのテクノロジはあまり知らない Copyright 2011 Kuniteru Asami 2
PHP on Azureな開発環境を作るツール Azureで便利なPHP用API Copyright 2011 Kuniteru Asami
3
Windows Azure Companion WebPi Command Line Microsoft
Visual Web Developer Eclipse PDT (windowsazure4e) CSPack & CSRun Command Line Tool Windows Azure Command-line Tools for PHP Copyright 2011 Kuniteru Asami 4
http://archive.msdn.microsoft.com/azurecompanion 省 略 さっき「できる!Windows Azure Companion」で聞いたでしょ? Copyright 2011 Kuniteru Asami
5
と言いつつ少しだけ… ProductListXmlFeedを自前で用意することで、他の アプリケーションもインストールすることができます。 Copyright 2011 Kuniteru Asami 6 http://www.asami.asia/WindowsAzureCompanionFeed.xml
http://blogs.iis.net/satishl/archive/2011/01/26/webpi-command-line.aspx Web Platform Installerのコマンドライン版です。 Startup TaskでWindows Azure上にPHPを 簡単にインストールできます。
◦ 標準では細かいバージョンの選択はできません。 5.3/5.2が選択可能です。5.3.x/5.2.xは選択不可です。 Copyright 2011 Kuniteru Asami 7
Copyright 2011 Kuniteru Asami 8 md "%~dp0appdata" reg add "hku¥.default¥software¥microsoft¥windows¥currentversion¥explorer¥user
shell folders" /v ^ "Local AppData" /t REG_EXPAND_SZ /d "%~dp0appdata" /f "%~dp0webpicmdline.exe" /AcceptEula /Products:PHP53 >>log.txt 2>>err.txt reg add "hku¥.default¥software¥microsoft¥windows¥currentversion¥explorer¥user shell folders" /v ^ "Local AppData" /t REG_EXPAND_SZ /d %%USERPROFILE%%¥AppData¥Local /f <?xml version="1.0" encoding="utf-8"?> <ServiceDefinition name="ProjectName" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> : <WebRole> : <Startup> <Task commandLine="startup.cmd" executionContext="elevated" taskType="simple" /> </Startup> </WebRole> </ServiceDefinition> ServiceDefinition.csdef startup.cmd (出力ディレクトリ:常にコピーする or 新しい場合はコピーする)
古い(Azure SDK 1.2以前の)ドキュメントの手順ではAzure上で PHPが利用できるようになりません。 以下のサイトが参考になります。 ◦ http://blogs.gine.jp/kusa/archives/1407 ◦
http://blogs.gine.jp/taka/archives/1978 Copyright 2011 Kuniteru Asami 9
http://www.windowsazure4e.org/ 添付されているWindows Azure SDK for PHPや PHP contributions(php_azure.dll)のバージョンが古いことがあります。
リモートデスクトップの設定など、GUIで対応していない機能があります。 Copyright 2011 Kuniteru Asami 10 参考) http://download.microsoft.com/download/E/C/7/EC727343-C72D-4F95-B96B-8FAAC3FB675A/3_eclipse.pdf
CSPack(パッケージ作成) :http://msdn.microsoft.com/en-us/library/gg432988.aspx CSRun(エミュレータ実行):http://msdn.microsoft.com/en-us/library/gg433001.aspx Windows Azure SDKに標準添付されています。 コマンドプロンプトで、 デプロイパッケージの作成や開発ファブリックでの実行が
できます。 ServiceConfiguration.cscfg, ServiceDefinition.csdefを、 自分で作成する必要があります。 Copyright 2011 Kuniteru Asami 11 rem コンピュートエミュレータ用パッケージの作成 cspack ServiceDefinition.csdef /copyonly /out:SamplePackage.csx /sitePhysicalDirectories:WebRole;Web;wwwroot /role:WebRole;wwwroot rem コンピュートエミュレータで実行 csrun SamplePackage.csx ServiceConfiguration.cscfg /launchbrowser rem コンピュートエミュレータを停止し削除 csrun.exe /removeall コンピュートエミュレータ(開発環境)での実行例 cspack ServiceDefinition.csdef /sitePhysicalDirectories:WebRole;Web;wwwroot /role:WebRole;wwwroot デプロイ用パッケージの作成例 参考) http://download.microsoft.com/download/E/C/7/EC727343-C72D-4F95-B96B-8FAAC3FB675A/4_cui.pdf
http://azurephptools.codeplex.com/ phpコマンドを利用してコマンドプロンプトで、 デプロイパッケージの作成や開発ファブリックでの実 行ができます。 ServiceConfiguration.cscfg, ServiceDefinition.csdefは、 用意されているテンプレートから作成されます。 ◦
細かい変更をコマンドライン引数で指定できます。 Copyright 2011 Kuniteru Asami 12 php package.php ^ --project=MyProject ^ --source=..¥php_source¥ ^ --phpRuntime="C:¥Program Files¥PHP¥" ^ --target=..¥workspace¥ デプロイパッケージ作成例 php package.php ^ --project=MyProject ^ --source=..¥php_source¥ ^ --phpRuntime="C:¥Program Files¥PHP¥" ^ --runDevFabric ^ --cleanRebuild コンピュートエミュレータ(開発環境)での実行例
Windows Azure SDK for PHP Windows Azure -
PHP contributions OData SDK for PHP AppFabric SDK for PHP Developers Copyright 2011 Kuniteru Asami 13
http://phpazure.codeplex.com/ PHPからWindows Azure Platform特有の機能などを 利用することができます。 Azure Storage(Blob, Table, Queue)へのアクセス
PHPセッション管理 Azureサービス管理 障害や性能などのモニタリングや診断 Copyright 2011 Kuniteru Asami 14
Japan Windows Azure User Group PHP on Windows Azure
http://r.jazug.jp/wiki/tech/php Microsoft 使えるWindows Azure http://www.microsoft.com/japan/windowsaz ure/campaign/mobile/chapter.aspx Copyright 2011 Kuniteru Asami 15
http://www.windows-maniax.com/ Copyright 2011 Kuniteru Asami 16
Azure ユーザー会にご参加ください http://r.jazug.jp