Apply php.ini Changes: Restart Web Server
After making changes to the php.ini file, you will need to restart the web server (such as Apache, Nginx, etc.) in order for the changes to take effect. You can restart the web server by following these steps:
- Open the terminal or command prompt window.
- Use the following command to restart the web server:
- If you are using an Apache server, input the following command:
sudo service apache2 restart
- To use an Nginx server, enter the following command:
sudo service nginx restart
- Press the Enter key to execute the command, and wait for the web server to restart.
- After completion, the changes made in the php.ini file will take effect.
Please make sure to backup the original php.ini file before making any modifications, in case of unexpected situations.