Home  >  Article  >  Backend Development  >  How to take effect after modifying php.ini

How to take effect after modifying php.ini

PHPz
PHPzOriginal
2020-09-25 15:39:447065browse

The setting method for modifying php.ini to take effect: first log in to nobody's account; then use the "whereis php" command to view and modify the php.ini file; and finally restart apache.

How to take effect after modifying php.ini

Recommended: "PHP Video Tutorial"

There are many options to modify php.ini on the Internet You can search for tutorials at will.

1. First use the root account to log in to the nobody account.

2. Then use the whereis php command to check the location of php.ini and modify the php.ini file.

3. Finally, restart apache and it will take effect.

The nobody account here is the account used by apache and has very low permissions.

The main thing to note here is that the configuration file you modify must be the configuration file used by nobody.

Under normal circumstances, if the configuration is modified but it does not take effect, you can consider whether there are multiple configurations on the machine.

How to take effect after modifying php.ini

The above is the detailed content of How to take effect after modifying php.ini. 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