dorbmd1177 2018-06-30 20:26 采纳率: 100%
浏览 264
已采纳

php.ini没有在Ubuntu 16.04.3 LTS上重新加载

Im trying to change something in php.ini - but after editing, saving the file and restarting apache no changes is updated.

I'm on Ubuntu 16.04.3 LTS

  • I have used phpinfo.php to locate the file in use: /etc/php/7.0/fpm/php.ini

  • Changing that file through terminal, updating short_open_tag from Off to On, and saving the file.

  • Typing service apache2 restart to make the changes go live

But no changes is updated. From phpinfo I can still see that short_open_tag is Off.

What am I missing here?

  • 写回答

1条回答 默认 最新

  • douduoquan2824 2018-06-30 20:47
    关注

    since you mention fpm, you need to restart fpm not apache, on debian based should be close to :

    sudo service php7.0-fpm restart
    

    or just

    sudo service php-fpm restart
    

    reload can also do it instead or restart.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了