Home  >  Article  >  Backend Development  >  What needs to be restarted to modify php.ini in Linux?

What needs to be restarted to modify php.ini in Linux?

青灯夜游
青灯夜游Original
2021-09-28 18:15:372699browse

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.

What needs to be restarted to modify php.ini in Linux?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn