@@ -6,14 +6,14 @@ Deploying to Microsoft Azure Website Cloud
6
6
7
7
This step by step cookbook describes how to deploy a small Symfony web
8
8
application to the Microsoft Azure Website cloud platform. It will explain how
9
- to setup a new Azure website including configuring the right PHP version and
9
+ to set up a new Azure website including configuring the right PHP version and
10
10
global environment variables. The document also shows how to you can leverage
11
11
Git and Composer to deploy your Symfony application to the cloud.
12
12
13
13
Setting up the Azure Website
14
14
----------------------------
15
15
16
- To setup a new Microsoft Azure Website, first `signup with Azure `_ or sign in
16
+ To set up a new Microsoft Azure Website, first `sign up with Azure `_ or sign in
17
17
with your credentials. Once you're connected to your `Azure Portal `_ interface,
18
18
scroll down to the bottom and select the **New ** panel. On this panel, click
19
19
**Web Site ** and choose **Custom Create **:
@@ -41,7 +41,7 @@ next step.
41
41
Step 2: New MySQL Database
42
42
~~~~~~~~~~~~~~~~~~~~~~~~~~
43
43
44
- On this step, you will be prompted to setup your MySQL database storage with a
44
+ On this step, you will be prompted to set up your MySQL database storage with a
45
45
database name and a region. The MySQL database storage is provided by Microsoft
46
46
in partnership with ClearDB. Choose the same region you selected for the hosting
47
47
plan configuration in the previous step.
@@ -114,7 +114,7 @@ the web server.
114
114
Choosing a more recent PHP version can greatly improve runtime performance.
115
115
PHP 5.5 ships with a new built-in PHP accelerator called OPCache that
116
116
replaces APC. On an Azure Website, OPCache is already enabled and there
117
- is no need to install and setup APC.
117
+ is no need to install and set up APC.
118
118
119
119
The following screenshot shows the output of a :phpfunction: `phpinfo ` script
120
120
run from an Azure Website to verify that PHP 5.5 is running with
@@ -171,7 +171,7 @@ this file just needs to be moved into the custom website extension directory.
171
171
longer be necessary.
172
172
173
173
To get the ``php_intl.dll `` file under your ``site/wwwroot `` directory, simply
174
- access the online **Kudu ** tool by browsing to the following url :
174
+ access the online **Kudu ** tool by browsing to the following URL :
175
175
176
176
.. code-block :: text
177
177
@@ -342,7 +342,7 @@ credentials, CSRF token protection, etc. These parameters come from the
342
342
.. image :: /images/cookbook/deployment/azure-website/step-16.png
343
343
:alt: Configuring Symfony global parameters
344
344
345
- The most important thing in this cookbook is to correctly setup your database
345
+ The most important thing in this cookbook is to correctly set up your database
346
346
settings. You can get your MySQL database settings on the right sidebar of the
347
347
**Azure Website Dashboard ** panel. Simply click on the
348
348
**View Connection Strings ** link to make them appear in a pop-in.
@@ -395,7 +395,7 @@ Symfony application is more complex than a basic Symfony Standard Edition, you
395
395
may have additional commands to execute for setup (see :doc: `/cookbook/deployment/tools `).
396
396
397
397
Make sure that your application is running by browsing the ``app.php `` front
398
- controller with your web browser and the following url :
398
+ controller with your web browser and the following URL :
399
399
400
400
.. code-block :: bash
401
401
@@ -408,7 +408,7 @@ Configure the Web Server
408
408
~~~~~~~~~~~~~~~~~~~~~~~~
409
409
410
410
At this point, the Symfony application has been deployed and works perfectly on
411
- the Azure Website. However, the ``web `` folder is still part of the url , which
411
+ the Azure Website. However, the ``web `` folder is still part of the URL , which
412
412
you definitely don't want. But don't worry! You can easily configure the web
413
413
server to point to the ``web `` folder and remove the ``web `` in the URL (and
414
414
guarantee that nobody can access files outside of the ``web `` directory.)
@@ -453,9 +453,9 @@ application, configure it with the following content:
453
453
</configuration >
454
454
455
455
As you can see, the latest rule ``RewriteRequestsToPublic `` is responsible for
456
- rewriting any urls to the ``web/app.php `` front controller which allows you to
456
+ rewriting any URLs to the ``web/app.php `` front controller which allows you to
457
457
skip the ``web/ `` folder in the URL. The first rule called ``BlockAccessToPublic ``
458
- matches all url patterns that contain the ``web/ `` folder and serves a
458
+ matches all URL patterns that contain the ``web/ `` folder and serves a
459
459
``403 Forbidden `` HTTP response instead. This example is based on Benjamin
460
460
Eberlei's sample you can find on GitHub in the `SymfonyAzureEdition `_ bundle.
461
461
@@ -471,7 +471,7 @@ and executed on a Microsoft IIS web server. The process is simple and easy
471
471
to implement. And as a bonus, Microsoft is continuing to reduce the number
472
472
of steps needed so that deployment becomes even easier.
473
473
474
- .. _`signup with Azure` : https://signup.live.com/signup.aspx
474
+ .. _`sign up with Azure` : https://signup.live.com/signup.aspx
475
475
.. _`Azure Portal` : https://manage.windowsazure.com
476
476
.. _`PHP MSDN documentation` : http://blogs.msdn.com/b/silverlining/archive/2012/07/10/configuring-php-in-windows-azure-websites-with-user-ini-files.aspx
477
477
.. _`git-scm.com` : http://git-scm.com/download
0 commit comments