Bug #80937 [Opn->Nab]: Bug on PHP: PHP.INI not loading on windows 10
Edit report at https://bugs.php.net/bug.php?id=80937&edit=1
ID: 80937
Updated by: cmb@php.net
Reported by: gilperon at gmail dot com
Summary: Bug on PHP: PHP.INI not loading on windows 10
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: WINDOWS 10 + PHP 8
PHP Version: 8.0.3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> 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.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (5 messages)