You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/web-sites-php-configure.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: msangapu-msft
6
6
ms.assetid: 95c4072b-8570-496b-9c48-ee21a223fb60
7
7
ms.devlang: php
8
8
ms.topic: article
9
-
ms.date: 04/11/2018
9
+
ms.date: 04/13/2020
10
10
ms.author: msangapu
11
11
ms.custom: seodec18
12
12
@@ -15,13 +15,15 @@ ms.custom: seodec18
15
15
16
16
## Introduction
17
17
18
-
This guide shows you how to configure the built-in PHP runtime for web apps, mobile back ends, and API apps in [Azure App Service](https://go.microsoft.com/fwlink/?LinkId=529714), provide a custom PHP runtime, and enable extensions. To use App Service, sign up for the [free trial]. To get the most from this guide, you should first create a PHP app in App Service.
18
+
This guide shows you how to configure the built-in PHP runtime for web apps and API apps in [Azure App Service](https://go.microsoft.com/fwlink/?LinkId=529714), provide a custom PHP runtime, and enable extensions. To use App Service, sign up for the [free trial]. To get the most from this guide, you should first create a PHP app in App Service.
19
19
20
20
## How to: Change the built-in PHP version
21
21
22
-
By default, PHP 5.6 is installed and immediately available for use when you create an App Serviceapp. The best way to see the available release revision, its default configuration, and the enabled extensions is to deploy a script that calls the [phpinfo()] function.
22
+
When creating a web app, you can choose the version of PHP that will be configured. See [PHP on App Service](https://github.com/Azure/app-service-linux-docs/blob/master/Runtime_Support/php_support.md) for up-to-date information of currently supported versions.
23
23
24
-
PHP 7.0 and PHP 7.2 versions are also available, but not enabled by default. To update the PHP version, follow one of these methods:
24
+
To check on the existing runtime version of your app, you can deploy a script that calls the [phpinfo()] function.
25
+
26
+
To update the PHP version, follow one of these methods:
25
27
26
28
### Azure portal
27
29
@@ -45,7 +47,7 @@ To use the Azure Command-Line Interface, you must [Install the Azure CLI](https:
45
47
46
48
2. Set the PHP version for the app.
47
49
48
-
az webapp config set --php-version {5.6 | 7.0 | 7.1 | 7.2} --name {app-name} --resource-group {resource-group-name}
50
+
az webapp config set --php-version {5.6 | 7.2 | 7.3} --name {app-name} --resource-group {resource-group-name}
49
51
50
52
3. The PHP version is now set. You can confirm these settings:
51
53
@@ -75,7 +77,7 @@ As an alternative to using a `.user.ini` file, you can use the [ini_set()] funct
75
77
76
78
1. Add an App Setting to your app with the key `PHP_INI_SCAN_DIR` and value `d:\home\site\ini`
77
79
1. Create an `settings.ini` file using Kudu Console (http://<site-name>.scm.azurewebsite.net) in the `d:\home\site\ini` directory.
78
-
1. Add configuration settings to the `settings.ini` file using the same syntax you would use in a `php.ini` file. For example, if you wanted to point the `curl.cainfo` setting to a `*.crt` file and set 'wincache.maxfilesize' setting to 512K, your `settings.ini` file would contain this text:
80
+
1. Add configuration settings to the `settings.ini` file using the same syntax you would use in a `php.ini` file. For example, if you wanted to point the `curl.cainfo` setting to a `*.crt` file and set 'wincache.maxfilesize' setting to 512 K, your `settings.ini` file would contain this text:
0 commit comments