


Solution to the problem that php cannot load the configuration file: first check whether the configuration file is loaded through the "php --ini" command; then modify "php7-9026.ini" to "php.ini".
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
The php configuration file is not loaded A configuration
Recently, two versions of php, 5.6 and 7.1, were installed and configured on a server. It was 5.6 before. Everything works fine, 7.1 was installed later.
Question:
The configuration file named in the 7.1 program directory is: php7-9026.ini. At the same time, the php7 extension is installed and enabled in the configuration file.
Check that the extensions are loaded normally through phpinfo.
Example: The bcmatch extension is newly installed.
Check it in phpinfo, it has been loaded, and the program call can also be used normally.
Cannot be viewed in php -m
Viewed through php --ini Load the configuration file and find that the configuration file is not loaded.
I understood the problem instantly.
The solution is to modify php7-9026.ini to php.ini.
Use bc to test normally
[Recommended learning: PHP video tutorial]
The above is the detailed content of How to solve the problem that php cannot load the configuration file. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
