Home  >  Article  >  PHP Framework  >  What should I do if swoole prompts that php.ini cannot be found?

What should I do if swoole prompts that php.ini cannot be found?

藏色散人
藏色散人Original
2020-04-10 10:15:022973browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Is swoole a plug-in?Next article:Is swoole a plug-in?