Home > Article > Backend Development > What needs to be restarted to modify php.ini in Linux?
In Linux, if "php.ini" is modified because of the PHP command line, there is no need to restart any process; and if "php.ini" is modified because of APACHE, apache needs to be restarted.
The operating environment of this tutorial: CentOS 6 system, PHP version 7.1, Dell G3 computer.
Linux What needs to be restarted to modify Php.ini?
Linux Modify Php.ini, there are two situations:
1. If you modify php.ini because of the PHP command line, you do not need to restart;
2. If you modify php.ini because of APACHE, you need to restart apache;
The file php.ini must be named 'php.ini' and placed in the directory specified by the PHPiniDir directive in httpd.conf. It can be viewed using the phpinfo() function. If no modifications are made, it is generally placed in the PHP installation directory under the Windows platform.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What needs to be restarted to modify php.ini in Linux?. For more information, please follow other related articles on the PHP Chinese website!