Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
インストールマニアックス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
46
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 Load Testing と Azure用 Jmeter Plugins
kuniteru
0
16
どう買う?Azure
kuniteru
1
720
スケールアウトできるManaged RDBMS - Azure Cosmos DB for PostgreSQL
kuniteru
0
120
現場からみた Azure リファレンスアーキテクチャ答え合わせ | Microsoft Build 2022
kuniteru
1
61
Azure Load Testingを利用したパフォーマンステスト
kuniteru
1
75
Understanding Azure Application Gateway
kuniteru
0
48
堅牢&運用楽々な WordPress を Azure App Service で
kuniteru
0
140
Azure PaaS とのよりセキュアな接続 - 初級編
kuniteru
0
50
あらためて Azure Virtual Network
kuniteru
0
35
Other Decks in Programming
See All in Programming
Dataformのリポジトリを立ち上げるときにまずやること / dataform-day0-2026
snhryt
0
160
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.1k
ふつうのFeature Flag実践入門
irof
7
4k
Inside Stream API
skrb
1
720
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
110
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
180
Agentic UI
manfredsteyer
PRO
0
160
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
120
Webフレームワークの ベンチマークについて
yusukebe
0
170
CSC307 Lecture 17
javiergs
PRO
0
320
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
280
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
260
Featured
See All Featured
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
540
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
470
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Design in an AI World
tapps
1
240
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
WCS-LA-2024
lcolladotor
0
630
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
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