php.ini and .user.ini usage
Posted by: ronk (
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?


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


> 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.2.0 32 bit - Apache 2.4.41 - PHP 7.4.1/7.3.13/..../5.6.40 - MySQL 5.7.29 - MariaDB 10.4.11
Wampserver 3.2.0 64 bit - Apache 2.4.41 - PHP 7.4.1/7.3.13/..../5.6.40 - MySQL 5.7.29/8.0.19 - MariaDB 10.4.11
PhPMyadmin 5.0.1 - 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.