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.
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.
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!