How to increase upload limits for Joomla on a Cpanel/Apache server

I often get asked about increasing upload limits for Joomla on Cpanel based servers.

Here is how:

  1. First we need to find out the server folder path to your Joomla installation. One way of doing this from within Joomla, is to go to Site - global configuration - server tab and take note of the path to the 'tmp' folder (minus the /tmp) at the end. Your server path would likely look like this: home/USERname/public_html
  2. Via ftp or via Cpanel's file manager, edit the .htaccess file in your sites main directory and add the following line to it (replacing the file path with your server's file path to Joomla from step 1): 
    SetEnv PHPRC /home/Username/public_html
  3. Using notepad, create a file called 'php.ini' on your computer and add the following content to it: 
    upload_max_filesize = 100M
    post_max_size = 100M
    memory_limit = 120M
  4. Upload the php.ini file to the main directory of your Joomla installation - and you are ready to go!

Recommended Client Management Program