Administrator
Administrator
- Joined
- May 18, 2016
- Messages
- 83
If you are using UBUNTU os, along with php 7.4 version this might help you for sure.
If you are planning to make changes to your PHP.INI file using shell access.
Here is some steps you can follow .
paste this in your shell window
It will load up bunch of .ini configuration file location, but you should look for the Loaded Configuration File
Now go edit your .ini file using NANO or VI text editor.
Then hit the restart php fm using
Now check your phpinfo page to make sure the changes you made do appear in the page?. IF NOT, worry not, just follow below steps.
Now edit the
Go to right at the bottom of the file do the changes
This upload max file size will update the php fpm configuration and will allow you to upload large file which is more than 2MB.
So do follow other limitation like
sudo service php7.4-fpm restart
If you are planning to make changes to your PHP.INI file using shell access.
Here is some steps you can follow .
paste this in your shell window
php --ini
It will load up bunch of .ini configuration file location, but you should look for the Loaded Configuration File
Now go edit your .ini file using NANO or VI text editor.
Then hit the restart php fm using
sudo service php7.4-fpm restart
Now check your phpinfo page to make sure the changes you made do appear in the page?. IF NOT, worry not, just follow below steps.
sudo service php7.4-fpm status
this will show you the status of your FPM and give you the location of fpm sock and config file. That will look something like this /etc/php/7.4/fpm/pool.d/www.conf
Now edit the
/etc/php/7.4/fpm/pool.d/www.conf
file using NANO or VI or VIM.Go to right at the bottom of the file do the changes
php_admin_value[upload_max_filesize] = 5M
This upload max file size will update the php fpm configuration and will allow you to upload large file which is more than 2MB.
So do follow other limitation like
php_admin_value[memory_limit] = 32M