Skip to content

Commit 0cfc638

Browse files
authored
Merge pull request #116377 from cephalin/issue#54785
update PHP quickstarts
2 parents c14b763 + 303774b commit 0cfc638

File tree

9 files changed

+34
-36
lines changed

9 files changed

+34
-36
lines changed

articles/app-service/app-service-web-get-started-php.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'QuickStart: Create a PHP web app'
33
description: Deploy your first PHP Hello World to Azure App Service in minutes. You deploy using Git, which is one of many ways to deploy to App Service.
44
ms.assetid: 6feac128-c728-4491-8b79-962da9a40788
55
ms.topic: quickstart
6-
ms.date: 08/24/2018
6+
ms.date: 05/25/2020
77
ms.custom: mvc, cli-validate, seodec18
88
---
99

@@ -65,14 +65,14 @@ In your terminal window, press **Ctrl+C** to exit the web server.
6565

6666
In the Cloud Shell, create a web app in the `myAppServicePlan` App Service plan with the [`az webapp create`](/cli/azure/webapp?view=azure-cli-latest#az-webapp-create) command.
6767

68-
In the following example, replace `<app_name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`). The runtime is set to `PHP|7.0`. To see all supported runtimes, run [`az webapp list-runtimes`](/cli/azure/webapp?view=azure-cli-latest#az-webapp-list-runtimes).
68+
In the following example, replace `<app-name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`). The runtime is set to `PHP|7.0`. To see all supported runtimes, run [`az webapp list-runtimes`](/cli/azure/webapp?view=azure-cli-latest#az-webapp-list-runtimes).
6969

7070

7171
```azurecli-interactive
7272
# Bash
73-
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app_name> --runtime "PHP|7.0" --deployment-local-git
73+
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "PHP|7.4" --deployment-local-git
7474
# PowerShell
75-
az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app_name> --runtime "PHP|7.0" --deployment-local-git
75+
az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "PHP|7.4" --deployment-local-git
7676
```
7777
> [!NOTE]
7878
> The stop-parsing symbol `(--%)`, introduced in PowerShell 3.0, directs PowerShell to refrain from interpreting input as PowerShell commands or expressions.
@@ -81,15 +81,15 @@ az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --
8181
When the web app has been created, the Azure CLI shows output similar to the following example:
8282

8383
<pre>
84-
Local git is configured with url of 'https://&lt;username&gt;@&lt;app_name&gt;.scm.azurewebsites.net/&lt;app_name&gt;.git'
84+
Local git is configured with url of 'https://&lt;username&gt;@&lt;app-name&gt;.scm.azurewebsites.net/&lt;app-name&gt;.git'
8585
{
8686
"availabilityState": "Normal",
8787
"clientAffinityEnabled": true,
8888
"clientCertEnabled": false,
8989
"cloningInfo": null,
9090
"containerSize": 0,
9191
"dailyMemoryTimeQuota": 0,
92-
"defaultHostName": "&lt;app_name&gt;.azurewebsites.net",
92+
"defaultHostName": "&lt;app-name&gt;.azurewebsites.net",
9393
"enabled": true,
9494
&lt; JSON data removed for brevity. &gt;
9595
}
@@ -98,7 +98,7 @@ Local git is configured with url of 'https://&lt;username&gt;@&lt;app_name&gt;.s
9898
You've created an empty new web app, with git deployment enabled.
9999

100100
> [!NOTE]
101-
> The URL of the Git remote is shown in the `deploymentLocalGitUrl` property, with the format `https://<username>@<app_name>.scm.azurewebsites.net/<app_name>.git`. Save this URL as you need it later.
101+
> The URL of the Git remote is shown in the `deploymentLocalGitUrl` property, with the format `https://<username>@<app-name>.scm.azurewebsites.net/<app-name>.git`. Save this URL as you need it later.
102102
>
103103
104104
Browse to your newly created web app. Replace _&lt;app name>_ with your unique app name created in the prior step.
@@ -113,7 +113,7 @@ Here is what your new web app should look like:
113113

114114
[!INCLUDE [Push to Azure](../../includes/app-service-web-git-push-to-azure.md)]
115115

116-
```bash
116+
<pre>
117117
Counting objects: 2, done.
118118
Delta compression using up to 4 threads.
119119
Compressing objects: 100% (2/2), done.
@@ -134,16 +134,16 @@ remote: Ignoring: .git
134134
remote: Finished successfully.
135135
remote: Running post deployment command(s)...
136136
remote: Deployment successful.
137-
To https://<app_name>.scm.azurewebsites.net/<app_name>.git
137+
To https://&lt;app-name&gt;.scm.azurewebsites.net/&lt;app-name&gt;.git
138138
cc39b1e..25f1805 master -> master
139-
```
139+
</pre>
140140

141141
## Browse to the app
142142

143143
Browse to the deployed application using your web browser.
144144

145145
```
146-
http://<app_name>.azurewebsites.net
146+
http://<app-name>.azurewebsites.net
147147
```
148148

149149
The PHP sample code is running in an Azure App Service web app.
-48.8 KB
Loading
3.6 KB
Loading
4.51 KB
Loading

articles/app-service/containers/quickstart-php.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Quickstart: Create a PHP app on Linux'
33
description: Get started with Linux apps on Azure App Service by deploying your first PHP app to a Linux container in App Service.
44
ms.assetid: 6feac128-c728-4491-8b79-962da9a40788
55
ms.topic: quickstart
6-
ms.date: 03/27/2019
6+
ms.date: 05/25/2020
77
ms.custom: mvc, cli-validatem seodec18
88
---
99

@@ -68,7 +68,7 @@ In your terminal window, press **Ctrl+C** to exit the web server.
6868
Browse to the site to see your newly created app with built-in image. Replace _&lt;app name>_ with your app name.
6969

7070
```bash
71-
http://<app_name>.azurewebsites.net
71+
http://<app-name>.azurewebsites.net
7272
```
7373

7474
Here is what your new app should look like:
@@ -77,37 +77,35 @@ Here is what your new app should look like:
7777

7878
[!INCLUDE [Push to Azure](../../../includes/app-service-web-git-push-to-azure.md)]
7979

80-
```bash
81-
Counting objects: 2, done.
80+
<pre>
81+
Counting objects: 26, done.
8282
Delta compression using up to 4 threads.
83-
Compressing objects: 100% (2/2), done.
84-
Writing objects: 100% (2/2), 352 bytes | 0 bytes/s, done.
85-
Total 2 (delta 1), reused 0 (delta 0)
83+
Compressing objects: 100% (23/23), done.
84+
Writing objects: 100% (26/26), 4.95 KiB | 0 bytes/s, done.
85+
Total 26 (delta 9), reused 0 (delta 0)
86+
remote: Deploy Async
8687
remote: Updating branch 'master'.
8788
remote: Updating submodules.
88-
remote: Preparing deployment for commit id '25f18051e9'.
89-
remote: Generating deployment script.
90-
remote: Running deployment command...
91-
remote: Handling Basic Web Site deployment.
92-
remote: Kudu sync from: '/home/site/repository' to: '/home/site/wwwroot'
93-
remote: Copying file: '.gitignore'
94-
remote: Copying file: 'LICENSE'
95-
remote: Copying file: 'README.md'
96-
remote: Copying file: 'index.php'
97-
remote: Ignoring: .git
98-
remote: Finished successfully.
99-
remote: Running post deployment command(s)...
89+
remote: Preparing deployment for commit id 'df425ea6ef'.
90+
remote: Repository path is /home/site/repository
91+
remote: Running oryx build...
92+
remote: Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
93+
remote: You can report issues at https://github.com/Microsoft/Oryx/issues
94+
remote: .
95+
remote: .
96+
remote: .
10097
remote: Deployment successful.
101-
To https://<app_name>.scm.azurewebsites.net/<app_name>.git
102-
cc39b1e..25f1805 master -> master
103-
```
98+
remote: Deployment Logs : 'https://&lt;app-name&gt;.scm.azurewebsites.net/newui/jsonviewer?view_url=/api/deployments/.../log'
99+
To https://&lt;app-name&gt;.scm.azurewebsites.net/&lt;app-name&gt;.git
100+
* [new branch] master -> master
101+
</pre>
104102

105103
## Browse to the app
106104

107105
Browse to the deployed application using your web browser.
108106

109107
```bash
110-
http://<app_name>.azurewebsites.net
108+
http://<app-name>.azurewebsites.net
111109
```
112110

113111
The PHP sample code is running in App Service on Linux with built-in image.
-48.8 KB
Loading
3.6 KB
Loading
4.51 KB
Loading

includes/app-service-web-create-web-app-php-linux-no-h.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ In the Cloud Shell, you can use the [`az webapp create`](/cli/azure/webapp?view=
1616

1717
```azurecli-interactive
1818
# Bash
19-
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "PHP|7.0" --deployment-local-git
19+
az webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "PHP|7.3" --deployment-local-git
2020
# PowerShell
21-
az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "PHP|7.0" --deployment-local-git
21+
az --% webapp create --resource-group myResourceGroup --plan myAppServicePlan --name <app-name> --runtime "PHP|7.3" --deployment-local-git
2222
```
2323

2424
When the web app has been created, the Azure CLI shows output similar to the following example:

0 commit comments

Comments
 (0)