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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 14:37:09  来源:igfitidea点击:

Laravel 5.3 Homestead php7 reload php.ini file

phplaravelhomestead

提问by cmac

enter image description hereI made some changes to /etc/php/7.0/cli/php.ini on my laravel homestead machine. But I can't get it to load the new settings. Tried restarting nginx, restart php7, etc...

在此处输入图片说明我在我的 laravel 宅基地机器上对 /etc/php/7.0/cli/php.ini 进行了一些更改。但我无法让它加载新设置。尝试重启 nginx,重启 php7 等...

回答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