Home > PHP Framework > Swoole > body text

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

藏色散人
Release: 2020-04-10 10:15:02
Original
2942 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!