Bug #80937 [Com]: Bug on PHP: PHP.INI not loading on windows 10

From: Date: Mon, 05 Apr 2021 15:57:39 +0000
Subject: Bug #80937 [Com]: Bug on PHP: PHP.INI not loading on windows 10
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233173@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80937&edit=1 ID: 80937 Comment by: gilperon at gmail dot com Reported by: gilperon at gmail dot com Summary: Bug on PHP: PHP.INI not loading on windows 10 Status: Not a bug Type: Bug Package: *General Issues Operating System: WINDOWS 10 + PHP 8 PHP Version: 8.0.3 Assigned To: cmb Block user comment: N Private report: N New Comment: I dont know how to close, could you cmb@php.net please close this? Previous Comments: ------------------------------------------------------------------------ [2021-04-05 15:57:01] gilperon at gmail dot com cmb@php.net Thanks, it worked! But it's not "either", it's "php_module". If I use "php8_module" on both lines, it does not work. It has to be "php_module" on both lines. ------------------------------------------------------------------------ [2021-04-05 15:19:16] cmb@php.net > LoadModule php_module "Z:/servidor/PHP/php8apache2_4.dll" > <IfModule php8_module> > PHPIniDir "Z:/servidor/PHP" > </IfModule> It's either php_module or php8_module, not both. ------------------------------------------------------------------------ [2021-04-05 15:13:57] gilperon at gmail dot com Description: ------------ I installed PHP 8 from https://windows.php.net/download/ (VS16 x64 Thread Safe) and also Apache (VS16 64 bits). I changed httpd.conf and added the lines below at the bottom of it: LoadFile "Z:/servidor/PHP/php8ts.dll" AddHandler application/x-httpd-php .php AddType application/x-httpd-php .html .html LoadModule php_module "Z:/servidor/PHP/php8apache2_4.dll" <IfModule php8_module> PHPIniDir "Z:/servidor/PHP" </IfModule> I renamed php-development.ini to php.ini so I can customize it later. Then I started Apache. PHP works fine BUT php.ini file is never loaded. No matter what I try to do, php.ini is always not loaded. phpinfo() shows: Configuration File (php.ini) Path no value Loaded Configuration File (none) Scan this dir for additional .ini files (none) Additional .ini files parsed (none) Also php_ini_loaded_file() returns false. I work with PHP for over a decade and I already installed it at least a hundred times and a few times I had problems making PHP work, and this time it's happening again. Is it a bug on Windows? Expected result: ---------------- Php.ini file should be loaded Actual result: -------------- Php.ini file is not being loaded. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80937&edit=1

« previous php.bugs (#233173) next »