Get the App
SLTechnology News&Howtos  ›  Development  › 

What do you need to restart to modify php.ini in linux

Shulou Source: shulou.com Published: 2022-06-03 09:10:14 11月15日 Update

This article mainly introduces what is needed to restart php.ini in linux to modify it. It has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.

In linux, if you modify "php.ini" because of PHP command line, you don't need to restart any process; if you modify "php.ini" because of APACHE, you need to restart apache.

This tutorial operates on CentOS 6, PHP 7.1, Dell G3 computers.

Linux to modify Php.ini need to restart what

Linux changes Php.ini in two ways:

If you modify php.ini because of the PHP command line, you do not need to restart;

If you modify php.ini because of APACHE, you need to restart apache;

php.ini This file must be named 'php.ini' and placed in the directory specified by the PHPINIDir directive in httpd.conf, which can be viewed using the phpinfo() function. If not modified, windows platforms are generally placed in the php installation directory.

Thank you for reading this article carefully. I hope that Xiaobian shared "What is the need to restart php.ini in linux?" This article is helpful to everyone. At the same time, I hope that everyone will support it a lot. Pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Tags: Articles commands directories values interests functions at the same time platforms situations instructions tutorials files more friends environment computers knowledge systems editing industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia macOS Xiaomi Redmi