When you are installing a WordPress site on a new server, or switching to a vanilla install of AWS there are certain features we have to switch on in order for WordPress to play ball.

This should avoid you having issues using the image uploader – with the http error. or cannot write to /dir error messages.

This sample .htaccess file is a collection of code that does just that,

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

AddType x-mapp-php5 .php

# Exclude the file upload and WP CRON scripts from authentication
<FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
Satisfy Any
Order allow,deny
Allow from all
Deny from none

Also wp-config.php file – you’ll need to increase the memory limit.

/** Memory Limit */
define('WP_MEMORY_LIMIT', '96M');

That’s it – you should be done.

About The Author

Jim Callender is a Freelance Wordpress Developer. Living & working in Brighton. He started working with Wordpress in 2003. Since then has been responsible for delivering high profile sites for a number of large UK design & marketing agencies. His other site is www.jayonline.co.uk