php.ini and .user.ini usage
Posted by: ronk (---.hsd1.mn.comcast.net)
Date: April 13, 2019 12:41AM

On Windows10, 1809, Wampserver 64, v3.1.8.

Have been able to relocate the php_error.log file successfully by left click the Wamp icon, and editing php.ini for each php version, in turn.

However, thought that ".user.ini" file should serve the same purpose, if located within the root folder of the application to override php.ini. Haven't been successful with that.

Have the php.ini (through wamp icon) set to:

user_ini.filename = ".user.ini"

The .user.ini in the current document root (tng12m) is this:

error_reporting = E_ALL & ~E_STRICK & ~E_NOTICE & E_DEPRECATED
log_errors = On
display errors = On
error_log = "R:\wamp64\private\tng12m\logs\php_error.log"

The error/warnings get posted instead to the default R:\wamp64\logs\php_error.log

Any idea what needs be done to enable the .user.ini to work?

Ron



Edited 2 time(s). Last edit at 04/13/2019 01:15AM by ronk.

Options: ReplyQuote
Re: php.ini and .user.ini usage
Posted by: Otomatic (Moderator)
Date: April 13, 2019 09:16AM

Hi,

> user_ini.filename = ".user.ini"
It is the default value.

It may be necessary to put the full path on the file.
As this directive is not part of the Wampserver delivery, it is up to you to consult the relevant PHP documentation.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.