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
Kuniteru Asami
May 29, 2011
Programming
56
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
290
Azure Load Testing と Azure用 Jmeter Plugins
kuniteru
0
45
どう買う?Azure
kuniteru
1
770
スケールアウトできるManaged RDBMS - Azure Cosmos DB for PostgreSQL
kuniteru
0
150
現場からみた Azure リファレンスアーキテクチャ答え合わせ | Microsoft Build 2022
kuniteru
1
91
Azure Load Testingを利用したパフォーマンステスト
kuniteru
1
100
Understanding Azure Application Gateway
kuniteru
0
77
堅牢&運用楽々な WordPress を Azure App Service で
kuniteru
0
180
Azure PaaS とのよりセキュアな接続 - 初級編
kuniteru
0
75
Other Decks in Programming
See All in Programming
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
小さなアプリを作って公開するまで
onozaty
0
140
SODA - FACT BOOK(EN)
sodainc
1
220
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
240
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
170
Spec-driven Development with AI
simas
PRO
0
2.3k
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
190
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
240
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.4k
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
160
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
AmebaブログはKMPから卒業します
kmars0605
0
330
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
380
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
The World Runs on Bad Software
bkeepers
PRO
72
12k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Visualization
eitanlees
153
17k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.7k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
300
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
800
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
How STYLIGHT went responsive
nonsquared
100
6.4k
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