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

前端 未结 4 776

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:23

    It depends on what OS and version you are running.

    I am running Apache/2.4.29 under Ubuntu.

    PHP Version 7.2.24.

    I restart apache with the following command and the restart is needed after modifying the php.ini file:

    sudo service apache2 restart
    

提交回复
热议问题