Home > Article > Backend Development > Solution to the problem that modifying php.ini does not take effect (uploading files larger than 8M)_PHP Tutorial
Summary: Uploading files larger than 8M requires modifying the php configuration to take effect. But I found a lot of information on modifying the configuration on the Internet, but after modifying it myself, it didn't take effect.
Solution:
Modify the php.ini option. There are many tutorials on the Internet, you can search for it.
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.
Generally, if the configuration is modified but it does not take effect, you can consider whether there are multiple configurations on the machine.
Attachment:
"php configuration parameters related to file upload"