我需要改变php.ini文件后重新启动Apache的? [英] Do I need to restart Apache after changing the php.ini file?

查看:129
本文介绍了我需要改变php.ini文件后重新启动Apache的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我进行了更改在php.ini文件中的设置 - 我需要重新启动Apache,以便使其生效。

If I make a change to a setting in the php.ini file - do I need to restart Apache in order for it to take effect?

推荐答案

要看,其实。取决于你如何使用PHP的Web服务器这里面:

Depends, actually. Depends on how you use php inside that webserver:


  • 使用PHP模块:您必须重新启动服务器进程

  • 使用PHP作为CGI后端:你做的的重新启动服务器进程

  • 使用PHP的FastCGI:不知道,其实......(重启是在安全方面,虽然)

  • 使用PHP-FPM:你必须重新启动FPM服务器进程prevent不一致

  • using php a module: you have to restart the server process
  • using php as cgi backend: you do not have to restart the server process
  • using php fastcgi: not sure, actually... (restarting is on the safe side, though)
  • using PHP-FPM: you have to restart the fpm server process to prevent inconsistencies

这篇关于我需要改变php.ini文件后重新启动Apache的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆