The Lazy Man’s “PHP Hello Cloud”

December 11, 2009 02:48 by jasonp

Due to the popular demand on how to actually host a PHP application on Windows Azure, this post teaches you the easiest way to deploy your PHP applications on the Cloud with the least effort and there is no need to use Windows Azure

Resources Needed:

1. PHP Binaries for IIS (http://windows.php.net/)
2. MySQL PHP Solution Accelerator (
http://code.msdn.microsoft.com/winazuremysqlphp)
3. VS2008 SP1/VS2010 Beta 2 w/ Windows Azure SDK

Steps:

1. Install the MySQL PHP Solution Accelerator.

2. Extract the PHP binaries for IIS to the “php” folder in the PhpMyAdminWebRole directory. E.g. “C:\Samples\AzureMySQLPHP_x86\PhpMyAdminWebRole\php”

3. Create a new “Windows Azure Cloud Service” solution in Visual Studio.

4. Add an existing project, “PhpMyAdminWebRole” (From the Solution Accelerator), to the solution you created.

5. Right click on “Roles” and select “Add-> Web Role Project in solution” and select the project you added in your solution previously.

6. Add a new text file in “PhpMyAdminWebRole” and name it “index.php”. The contents of the file is “ <?php echo ‘Hello Cloud’; ?> “

7(Optional). Open Web.config and replace “ <add value="Admin.aspx"/>” to “ <add value="index.php"/>

 

 

And you are all set! Hit F5 in your Visual Studio to see your work in action on the Development Fabric.


Comments

January 16. 2010 10:30

how to get financing femal owned business

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.

how to get financing femal owned business

January 16. 2010 12:27

stock loan

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

stock loan

January 16. 2010 22:28

bankruptcy

Thanks for the comments. I have updated the blog with changes on step 11 and 13 to make the process easier. (:

bankruptcy

January 16. 2010 22:28

Whiplash claim

I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.

Whiplash claim

January 18. 2010 20:54

Shopping

Thanks for the comments. I have updated the blog with changes on step 11 and 13 to make the process easier. (:

Shopping

January 19. 2010 13:16

Models

I would never waste my time doing it the hard way again. This is the simplest I have seen. We run modeling sites for models, and this will help us deploy faster and better.

Models

January 21. 2010 01:28

games online free

I feel strongly about it and love learning more on this topic.

games online free

January 21. 2010 11:54

 carindale real estate

I dont normally comment on blogs but for this case just like the comments above I would take this opportunity to commend you for an informative post. Keep up the good work.
-Alicia

carindale real estate

January 30. 2010 18:32

otimização de sites

These implementations run on any server (linux or windows) or only windows servers?
Thanks.

otimização de sites

February 8. 2010 02:33

bambang tri

I still don't get it.
Why would people want to host their PHP application on Windows Azure?

bambang tri

February 8. 2010 23:17

sms web service

Thanks for the post. Keep the great work.

sms web service

February 11. 2010 23:44

buy laptop

Useful info. Hope to see more good posts in the future.

buy laptop

February 18. 2010 05:23

GHD

Keep the great work.

GHD

February 21. 2010 21:25

Criação de Sites

Interessante!

Criação de Sites

February 21. 2010 21:27

Acompanhantes em BH

Thanks for post man!!!

Acompanhantes em BH

February 21. 2010 21:33

Contabilidade em Geral

Obrigado pelos comentários.

Contabilidade em Geral

February 21. 2010 21:48

Marmoraria

Interessante seu comentário.

Marmoraria

February 21. 2010 21:49

Convites Especiais

Adorei!!!

Convites Especiais

February 22. 2010 16:50

search engine traffic

I appreciate your ideas and would like to read some more good stuff keep it up! This is very nice one and gives in-depth information.




search engine traffic

February 25. 2010 07:16

Fatcow

I can't seem to locate your syndication feed, I would like to follow your posts.

Fatcow

February 26. 2010 15:01

Scar removal

Great article! keep it going!

Scar removal

February 26. 2010 15:02

Dietas

Very nice tutorial!

Dietas

February 27. 2010 03:29

Energy

I agree with everybody here, truly valuable and easy post, PHP application hosting in Windows Azure wasnt my strongest points in my CV Smile
David

Energy

February 27. 2010 11:04

BuDgEt VaN LiNeS

would it be more efficient to use asp/.net

BuDgEt VaN LiNeS

March 1. 2010 14:30

Latest UK Weather

Well i have to agree with other comments on here, this blog is fantastic!!! thanks very much i hope to read more of your posts.

Regards,
Lewis

Latest UK Weather

March 2. 2010 23:10

technology essays

GReat post. Very helpful and useful. Thanks for the tips.

technology essays

March 3. 2010 21:11

fiacardservices

Thank for sharing us, I 've never host php on window Azure.this help my job easier...

fiacardservices

March 5. 2010 01:57

fuel

would it be more efficient to use asp/.net - quite the same idea or thought, anybody can answer...

fuel

March 7. 2010 05:49

budget wedding

Not that I wish to copy your website, but I truly adore the look. Could you tell me what template are you using? Or was it made just for you?

budget wedding

March 7. 2010 08:40

Acompanhantes BH

Lindo!!!

Acompanhantes BH

March 7. 2010 08:42

Cadastro em Sites de Busca

Thanks for post. Congratulation!!!!!

Cadastro em Sites de Busca

March 7. 2010 08:44

Marketing em Sites

Congratulations!!!

Marketing em Sites

Add comment




biuquote
  • Comment
  • Preview
Loading