doushi3189 2019-04-24 19:58
浏览 118

“php artisan serve”在Mac OS中读取配置在哪里? [重复]

This question already has an answer here:

I'm running my laravel project using php artisan serve, however I got stuck because I need to upload some heavy file to the server.

I've been reading on where php.ini file is in Mac, and i realized that mac has a default php configuration and if won't be read from php.ini at least you copy the php.default.ini from /etc and make a file in /etc called php.ini.

I already struggled with this on Linux, it turns out that since I'm running php artisan serve, the configuration was being taken from /etc/php/cli (Honestly i don't remember well the exact path, but the point is that it wasn't being taken from the php.ini standard file) but in Mac this folder doesn't exists, and even if I make a copy of php.default.ini and save it in /etc, my project seems to be ignoring that configuration. (which makes sense because it must be reading it from another path, just like in linux).

Does anyone know something about it? Has someone struggled with this before?

</div>
  • 写回答

2条回答 默认 最新

  • dongtuhe0506 2019-04-24 21:11
    关注

    Write a <?php phpinfo();?> in anywhere and its output will show you the path of the loaded php.ini file.

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab实现基于主成分变换的图像融合。
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊