Change Default PHP settings
By default, PHP file upload size is set to a maximum of 2MB. You can change this amount and we will need to change this to something more realistic for todays servers.
Using Putty, make sure you are connected to your development machine. We will be editing the default PHP file,
|sudo nano /etc/php/7.4/apache2/php.ini|
Search for and find the following line
upload_max_filesize = 2M
Change this to a minimum of 64M (megabytes) you can set this to any size you might possibly upload through your website.
upload_max_filesize = 64M
Restart the web server once this has been completed to allow the web server to utilize the new settings.
|sudo systemctl restart apache2|