Increasing WordPress max upload size on Dreamhost

18 Apr 2011

WordPress has a maximum upload size for files which may be annoying for anything but images and small documents. The limit comes from an internal PHP setting, which can be changed with access to the php.ini file.

  1. Download the ‘Custom PHP auto-installer.’
  2. Upload dh-phpini.php via FTP to your website
  3. Access the file via your web browser (e.g. www.malcolmcrum.com/dh-phpini.php), and follow the brief instructions.
  4. You’ll now have a php.ini file in a ‘cgi-bin’ folder which you may freely edit. Open it, and edit these lines to whatever size you wish:
    post_max_size = 50mb
    upload_max_filesize = 50mb
  5. SSH into your Dreamhost account, and run this command:
    $ touch ~/domain.tld/cgi-bin/dispatch.fcgi

Note that you need to change your account manually to support SSH, if you have not already done so. You can follow these steps for Dreamhost’s instructions on this.

RECENT BLOG POSTS

Yesterday I attended my second gamejam, an eight hour event where teams form to work on small games together around some loose themes, which this time were Black & White, Rockets, and Masks.

Read More...

It’s early to say this, and maybe a little crazy, but I can’t help but put Twenty, a simple game from Stephen French, in the same category as Tetris. Not just in the way it plays - though it shares that methodical feeling of clearing a space that transitions to crowded panic - but in how it takes just a single mechanic and a simple interface to create something truly elegant and timeless. Twenty deserves to be played for decades to come, just like Tetris.

Read More...