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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.8 32 bit - Apache 2.4.39 - PHP 7.3.4/7.2.17/7.1.28/7.0.33/5.6.40 - MySQL 5.7.25 - MariaDB 10.3.14
Wampserver 3.1.8 64 bit - Apache 2.4.39 - PHP 7.3.4/7.2.17/7.1.28/7.0.33/5.6.40 - MySQL 5.7.25/8.0.15 - MariaDB 10.3.14
PhPMyadmin 4.8.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.