Adjust docs

This commit is contained in:
crazywhalecc
2024-10-18 12:42:16 +08:00
parent 7c71d88100
commit 326273ca9d
4 changed files with 17 additions and 15 deletions

View File

@@ -2,13 +2,14 @@
Here will be some questions that you may encounter easily. There are currently many, but I need to take time to organize them.
## What is the path of `php.ini`?
## What is the path of php.ini ?
On Linux, macOS and FreeBSD, the path of `php.ini` is `/usr/local/etc/php/php.ini`.
On Windows, the path is `C:\windows\php.ini`.
The directory where to look for `php.ini` can be changed using the manual build option `--with-config-file-path`.
On Windows, the path is `C:\windows\php.ini` or the current directory of `php.exe`.
The directory where to look for `php.ini` can be changed on *nix using the manual build option `--with-config-file-path`.
In addition, on Linux, macOS and FreeBSG, `.ini` files present in the `/usr/local/etc/php/conf.d` directory will also be loaded.
In addition, on Linux, macOS and FreeBSD, `.ini` files present in the `/usr/local/etc/php/conf.d` directory will also be loaded.
On Windows, this path is empty by default.
The directory can be changed using the manual build option `--with-config-file-scan-dir`.
`php.ini` will also be searched for in [the other standard locations](https://www.php.net/manual/configuration.file.php).