EXCEEDED THE UPLOAD_MAX_FILESEZE? EASY FIX

The uploaded file exceeds the upload_max_filesize directive in php.ini

Sometimes, when trying to install an extension/component, you might receive 'The uploaded file exceeds the upload_max_filesize directive in php.ini' message during the installation process! This error is not specific to Joomla, or WordPress but the exact error message may vary from one web design platform to another!

This is an easy problem to solve using your preferred FTP program by editing your php.ini file located on the root of your website! So without further ado, let's edit the php.ini file and take care of this 'The uploaded file exceeds the upload_max_filesize directive in php.ini' error message!

  • Launch your favorite FTP program and connect to your site
  • Navigate to your website's root directory (if the FTP does not take you directly)
  • Locate your php.ini file
  • Either download your php.file onto your computer to edit, or just right click on look for an option to edit
  • If the below syntax does not already exist in your php.ini file, just add the syntax to the file
  • upload_max_filesize = 20M
  • Save the changes (if you edited the file within your FTP Program, click 'YES' on any message you get referring to the changes you made
  • Upload the file back to your site's root directory (if it was downloaded to your pc)

Now you should be able to install your component/extension with no problem.

Please Note: You can change the size to any size you want but make sure to check with your hosting company regarding their upload_max_filesize limit restriction

Afraid to edit your php.ini file?

If, for some reason or another, you are not comfortable touching the php.ini, you have another option! Good hosting companies will offer an option that will easily help you edit some files variable through your cPanel!

If you are using SiteGround as your hosting company for example, just follow the following steps:

  • Login to your cPanel
  • Under the '1H SOFTWARE' section
  • Locate and click on the 'PHP Variables Manager' icon
  • Once there, you will see something like this:
  • domain/public_html php.ini
  • Click on 'public_html'
  • Then in the 'upload_max_filesize' box, type your desired size (just the number)
  • Make sure that the 'Apply changes to all sub-directories?' option is Checked
  • Click on 'Save'

Checking your upload_max_filesize from your Joomla Backend

Just to make sure that the changes you made to your php.ini were successful, you can check your upload_max_filesize limited via your Joomla backend by following the following simple steps:

Login to your Joomla backend
Click on 'System' located on the far left
Click on 'System Information'
Click on the 'PHP Information' Tab
Using your keyword, Do a search for 'upload_max_filesize' by using the 'CTRL+F' (for Windows users), or 'Command+F' if you are a Mac user
To the right of the 'upload_max_filesize' line, you should see the new number, in MB (ie: 20M)

We hope this article will resolve your 'The uploaded file exceeds the upload_max_filesize directive in php.ini'

 

SimplerWebs

We Fix websites errors Fast!