Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Windows Azure > Using Windows Azure Case Study (Move to VM - Windows) > ขั้นตอนที่ 4 : ติดตั้ง PHP สำหรับ IIS บน VM Windows Server ของ Windows Azure



Clound SSD Virtual Server

ขั้นตอนที่ 4 : ติดตั้ง PHP สำหรับ IIS บน VM Windows Server ของ Windows Azure

ขั้นตอนที่ 4 : ติดตั้ง PHP สำหรับ IIS บน VM Windows Server ของ Windows Azure บน IIS ในค่าที่เป็น Default จะไม่มี Plugin ของ PHP มาให้เหมือนกับ ASP / ASP.Net ซึ่งเราจะต้องทำการมา Config เพื่อให้ IIS สามารถรัน PHP ได้ และเป็นที่น่ายินดีอย่างยิ่ง เพราะ Microsoft ได้ให้ความสนใจกับ PHP กว่าเมื่อก่อนมาก ด้วยการสร้าง Plugin สำหรับการติดตั้งบน IIS โดยเพียงแค่ Download มาติดตั้งก็สามารถที่จะจะทำให้ IIS สามารถรัน PHP ได้ทันที โดยไม่ต้องทำการ Config ค่าใด ๆ เพิ่มทั้งสิ้น จากที่ก่อนหน้านี้ เราจะรู้ว่าการ Config ให้ IIS ทำการรัน PHP ได้นั้นค่อนข้างยากเอาการพอสมควร

ภายใต้ VM บน Windows Azure

Windows Azure VM Windows Server PHP

ด้วยการ Remote Desktop เพื่อเข้าใช้งาน ให้ทำการเปิด Web Browser บน VM เพื่อติดตั้งโปรแกรมดังนี้

ให้ดาวน์โหลดไฟล์ PHP สำหรับ IIS ได้ที่


Windows Azure VM Windows Server PHP

ปัจจุบันรองรับบน
Windows 8, Windows 7, Windows Vista SP2, Windows XP SP3+, Windows Server 2003 SP2+, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012.


Windows Azure VM Windows Server PHP

เลือก Install PHP Now จากนั้นจะได้เป็นไฟล์ .exe ให้ดับเบิ้ลคลิกเพื่อ Download

Windows Azure VM Windows Server PHP

เลือก Run








Windows Azure VM Windows Server PHP

คลิกที่ Install

Windows Azure VM Windows Server PHP

เลือก I Accept

Windows Azure VM Windows Server PHP

กำลัง Install

Windows Azure VM Windows Server PHP

Install เรียบร้อยแล้ว

หลังจากที่ติดตั้งเรียบร้อยแล้ว เราจะมาทดสอบการทำงานของ PHP บน IIS ว่าทำงานปกติหรือไม่

Windows Azure VM Windows Server PHP

สร้างไฟล์ phpinfo.php จัดเก็บไว้ใน D:\thaicreate\

Windows Azure VM Windows Server PHP

คำสั่งง่าย ๆ

phpinfo.php
<?php
phpinfo();
?>


Windows Azure VM Windows Server PHP

ทดสอบเรียกจาก Client : http://thaicreate.cloudapp.net/phpinfo.php ถ้าแสดงผลดังรุป แสดงว่า PHP ทำงานบน IIS ได้แล้ว


การปรับแต่ง PHP บน IIS

Windows Azure VM Windows Server PHP

เปิดโปรแกรม IIS สังเกตุว่าจะมี Icon ของ PHP Manager

Windows Azure VM Windows Server PHP

จะมี Path สำหรับ php.ini ซึ่งเราสามารถคลิกเพื่อทำการแก้ไขปรับแต่ง PHP

Windows Azure VM Windows Server PHP

ตัวอย่างการปรับแต่ง php.ini ด้วยการปรับ short_open_tag = On

ในการแก้ไข php.ini ทุกครั้งจะต้องทำการ Restart ตัว IIS ด้วยทุกครั้ง









บทความถัดไปที่แนะนำให้อ่าน

   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-06-08 19:00:55 / 2017-03-24 16:54:42
  Download : No files
 Sponsored Links / Related

 
ขั้นตอนที่ 1 : การสร้าง VM ของ Windows Server บน VM - Windows Azure
Rating :

 
ขั้นตอนที่ 2 : การติดตั้ง IIS Web Server การสร้าง Endpoint เพื่อบริการ Web Server
Rating :

 
ขั้นตอนที่ 3 : การสร้าง Setup FTP Account และ FTP ไฟล์ไปที่ VM (Windows Server)
Rating :

 
ขั้นตอนที่ 5 : การติดตั้ง MySQL และสร้าง User สำหรับ MySQL บน Windows Server
Rating :

 
ขั้นตอนที่ 6 : การติดตั้ง SMTP บน VM Windows Server เพื่อใช้สำหรับส่งอีเมล์ด้วย PHP
Rating :

 
ขั้นตอนที่ 7 : การแก้ไข CNAME เกำหนด Custom Domain เพื่อใช้งานจริงบน VM
Rating :

 
ขั้นตอนที่ 8 : การตรวจสอบ Scale , Monitor และรายละเอียดค่าบริการอื่น ๆ
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 02
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่