Most of the times when uploading a bigger image file or a publication into a wordpress or Joomla or Drupal website, you get an error like “this file or image exceeds the maximum upload size for this website “
Below are some of ways to increase your Max Upload Size to MB of your choice.
For those using Cpanel, your php.ini file will be created automatically through MultiPHP INI Editor.
Login into your Cpanel and go under Softwares then click on MultiPHP INI Editor.
Under Basic Editor -> Select the home directory or a domain’s document root to open the corresponding PHP configuration. In my case I selected my website domain.
NOTE: If you have multiple domains ensure you pick only that you want to edit its Max Upload Size.
Scroll to the bottom of the php ini editor and change the size of upload_max_filesize to a figure you want.
NOTE: only edit the number as M is unit representation for Megabytes.
Click on Apply.
Create PHP.INI file
For those with only access to the FTP account or other panels without PHP INI editors, follow the steps below
Access your root folder of your website either through FTP or any other given Panel then create php.ini file and paste in the following codes to increase your upload_max_filesize
display_errors = Off max_input_time = 60 max_input_vars = 1000 upload_max_filesize = 2M
Note: max_input_vars and max_input_time are also equally important.