Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 5308

Change PHP_INI_SYSTEM configuration settings

$
0
0

PHP_INI_SYSTEM level settings cannot be changed from .user.ini or ini_set function. To make change for PHP_INI_SYSTEM settings on Azure web app, follow the steps,

1. Add an App Setting to your Web App with the key PHP_INI_SCAN_DIR and value d:homesiteini

2. Create an settings.ini file using Kudu Console (http://<site-name>.scm.azurewebsite.net) in the d:homesiteini directory.

3. 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:

 ; Example Settings
 curl.cainfo="%ProgramFiles(x86)%Gitbincurl-ca-bundle.crt"
 wincache.maxfilesize=512

4. Restart your Web App to load the changes

Reference: https://docs.microsoft.com/en-us/azure/app-service/web-sites-php-configure


Viewing all articles
Browse latest Browse all 5308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>