Home >PHP Framework >Swoole >What should I do if swoole prompts that php.ini cannot be found?
swoole What should I do if it says that php.ini cannot be found?
I am using CentOS 7.3, but the account does not have sudo permissions, so I installed PHP 7.1.8 under ~/.local/php7, but found that .local/php7/etc is not No
php.ini file but everything works fine? ? ?
The key is that I installed swoole and found that I couldn't find it. I need to configure php.ini
After searching for a long time, I can use
php -ini | grep Configuration
to view it. It turns out that php. ini needs to be placed under .local/php7/lib
Configuration File (php.ini) Path => xxxxxxx/.local/php7/lib Loaded Configuration File => (none) Configuration
Just copy a copy of php.ini-development from the source code to .local/php7/lib
Configuration File (php.ini) Path => xxxxxxx/.local/php7/lib Loaded Configuration File => xxxxxxx/.local/php7/lib/php.ini Configuration
The above is the detailed content of What should I do if swoole prompts that php.ini cannot be found?. For more information, please follow other related articles on the PHP Chinese website!