If you’ve installed wordpress on OSX in your home directory and then enabled permalinks, you will find that you are getting 404’s when viewing your posts. Unless you add the following to your /private/etc/apache2/users/username.conf file. 🙂
Options Indexes MultiViews SymLinksIfOwnerMatch
AllowOverride Options FileInfo
Now that my file upload size has been fixed, I want to upload a .dmg (Mac universal Binary) file for people to download.
WP tells me ‘Sorry, this file type is not permitted for security reasons’.
Frankly I can’t be Rsed to install a plugin just to enable .dmg files, so I’ve zipped my file and uploaded it with no problems.
Some documentation here for others searching for the answer – if you find a convenient answer (preferably with a GUI) then please leave a comment!
A default WP install is limited to 2MB file uploads. File upload behaviour of PHP is controlled by the php.ini file. We can edit the .htaccess file to insert variables into our php.ini at runtime.
When WP told me ‘Max upload file size: 2MB’, I set:
php_value upload_max_filesize 64M
Then WP told me ‘Max upload file size: 8MB’, so I set:
php_value post_max_size 64M
Now WP tells me ‘Max upload file size: 64MB’.
Job’s a goodun!