Laravel 5.3 Homestead php7 重载 php.ini 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40065027/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel 5.3 Homestead php7 reload php.ini file
提问by cmac
回答by Mauran Muthiah
The file /etc/php/7.0/cli/php.ini is for PHP-running trough commandline.
文件 /etc/php/7.0/cli/php.ini 用于运行 PHP 的命令行。
There should a php.ini in /etc/php/7.0/fpm with the settings for PHP-FPM. After you've edited that, restart php-fpm with this command
/etc/php/7.0/fpm 中应该有一个带有 PHP-FPM 设置的 php.ini。编辑完成后,使用此命令重新启动 php-fpm
service php7.0-fpm restart
回答by Hyder B.
I'm also running Homestead but a more recent version, for me it was the following:
我也在运行 Homestead 但更新的版本,对我来说如下:
service php7.1-fpm restart