pmhaynes

Just another WordPress site

  • Buy Adspace

How to change WordPress upload size limit

Posted by Paul on June 23, 2021
Posted in: Wordpress. Tagged: size limit, upload.

There are plenty of blog posts about 6 ways to change the upload size limit, i read them all. As usual there were little bits missing that someone like me needed to understand comletly what was needed.

So i thought i would add my own blog on my experience of increasing the upload size limit on my wordpress site

This wordpress site is part of multisite wordpress.

I have built it myself on a virtual machine from a hosting company. I rent a bare bones virtual linux machine with nothing on it

I then installed wordpress multisite with plugins and themes etc

So this might be differnt for you if you have purchased a prebuitl wordpress site

You will have less access to the underlying files

Because of the multisite install of wordpress ihave an extra setting for upload file size and file types

Changing this setting made no difference to the 2mb limit i was stuck with (until later)

Googling how to chnage the limit brought up a .htaccess method and a php.ini method

I teied the .htacess method but it stopped the media libary from loading fro some reason so i reverted the chnages back

Then i tried the php.ini method. The post i read however was not clear on where to find the php.ini file. It advised if i didnt have a php.ini file that you could create one

So off i went and created the php.ini file in the www folder of apache

This didnt work

So off to google i went

Then i found another post not related to wordpress about php and apache

How do i check what version of php i was using.

Well i remebered from installing word press that it created a file for you called info.php in your apache www folder

if you web browse to this file it will show you what version of php you are using and its location on the server

PHP7.4

As you can see it shows me php7.4 and its installed location

That is where you find php.ini and where you alter the upload size

I added these two line of text to the php.ini file and hey presto the upload size increased

post_max_size = 100M
upload_max_filesize = 100M

Not to 100mb though!

That was where i needed to go back and alter the upload size in the mutlisite settings (picture above)

Hope this helps someone like me who struggled to fill in the blanks between all the online posts about upload size limits for wordpress

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook

Like this:

Like Loading...

Posts navigation

← Routing network traffic between 2 subnets using a Raspberry Pi
Change your LAN from public to Private Profile with Powershell on Windows 10 →
  • Advert

  • Recent Posts

    • MS Office 2010 working links on Microsoft URL
    • Change your LAN from public to Private Profile with Powershell on Windows 10
    • How to change WordPress upload size limit
    • Routing network traffic between 2 subnets using a Raspberry Pi
    • OpenVPN setup
  • Recent Comments

    • Archives

      • March 2023 (2)
      • June 2021 (1)
      • February 2019 (1)
      • December 2018 (1)
      • March 2018 (2)
      • April 2015 (2)
      • January 2015 (1)
      • October 2014 (1)
      • June 2014 (1)
      • May 2014 (6)
      • April 2014 (2)
      • March 2014 (1)
      • January 2014 (1)
      • December 2013 (1)
      • November 2013 (6)
    • Categories

      • Linux
      • Uncategorized
      • Windows
      • Wordpress
    • Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
    Proudly powered by WordPress Theme: Parament by Automattic.
     

    Loading Comments...
     

    You must be logged in to post a comment.

      %d