Do I need to restart Apache after changing the php.ini file?

前端 未结 4 774

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?

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 06:28

    On Debian 8 I had to restart PHP-FPM (and Apache) The above answers are correct, but here are the commands so you won't have to googling them.

    Restart Apache :

    /etc/init.d/apache2 restart
    

    Restart php5-fpm :

    sudo service php5-fpm restart
    

提交回复
热议问题