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.
- Download the ‘Custom PHP auto-installer.’
- Upload dh-phpini.php via FTP to your website
- Access the file via your web browser (e.g. www.malcolmcrum.com/dh-phpini.php), and follow the brief instructions.
- 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 - 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.
Comments