Skip to content

Commit c6fec22

Browse files
authored
Merge pull request #111173 from btardif/php
Removing references to EOL PHP versions
2 parents e3fa476 + 79b3886 commit c6fec22

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/app-service/web-sites-php-configure.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: msangapu-msft
66
ms.assetid: 95c4072b-8570-496b-9c48-ee21a223fb60
77
ms.devlang: php
88
ms.topic: article
9-
ms.date: 04/11/2018
9+
ms.date: 04/13/2020
1010
ms.author: msangapu
1111
ms.custom: seodec18
1212

@@ -15,13 +15,15 @@ ms.custom: seodec18
1515

1616
## Introduction
1717

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.
1919

2020
## How to: Change the built-in PHP version
2121

22-
By default, PHP 5.6 is installed and immediately available for use when you create an App Service app. 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.
2323

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:
2527

2628
### Azure portal
2729

@@ -45,7 +47,7 @@ To use the Azure Command-Line Interface, you must [Install the Azure CLI](https:
4547

4648
2. Set the PHP version for the app.
4749

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}
4951

5052
3. The PHP version is now set. You can confirm these settings:
5153

@@ -75,7 +77,7 @@ As an alternative to using a `.user.ini` file, you can use the [ini_set()] funct
7577

7678
1. Add an App Setting to your app with the key `PHP_INI_SCAN_DIR` and value `d:\home\site\ini`
7779
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:
7981

8082
; Example Settings
8183
curl.cainfo="%ProgramFiles(x86)%\Git\bin\curl-ca-bundle.crt"

0 commit comments

Comments
 (0)