This commit is contained in:
Kévin Dunglas
2024-10-15 11:14:30 +02:00
parent ec584bf704
commit f94d9bb58a
7 changed files with 42 additions and 3 deletions

View File

@@ -2,7 +2,18 @@
Here will be some questions that you may encounter easily. There are currently many, but I need to take time to organize them.
## Can statically compiled PHP install extensions?
## 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`.
In addition, on Linux, macOS and FreeBSG, `.ini` files present in the `/usr/local/etc/php/conf.d` directory will also be loaded.
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).
## Can statically-compiled PHP install extensions?
Because the principle of installing extensions in PHP under the traditional architecture is to install new extensions using `.so` type dynamic link libraries,
and statically linked PHP compiled using this project cannot **directly** install new extensions using dynamic link libraries.