Skip to content

WP Tricks

If you serve wordpress over proxy with SSL (https) add in wp-config.php

PHP
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
    define('FORCE_SSL_ADMIN', true);
    $_SERVER['HTTPS']='on';
}

Increase upload and memory limit and other stuff adding file /usr/local/etc/php/conf.d/uploads.ini

INI
file_uploads = On
memory_limit = 512M
upload_max_filesize = 1024M
post_max_size = 512M
max_execution_time = 300
max_input_time = 1000