WordPress PHP modifications

From Jay's Cafe' Wiki
Revision as of 09:03, 14 October 2019 by Jayctheriot (talk | contribs)

Changes to {webroot}/wp-config.php

if ( (!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) ||
     (!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) ) {
    $_SERVER['HTTPS'] = 'on';
}

/**
 * Disable security restrictions on file uploads
 */

define(‘ALLOW_UNFILTERED_UPLOADS’, true);

@ini_set( 'upload_max_size' , '20M' );
@ini_set( 'post_max_size', '13M');
@ini_set( 'memory_limit', '15M' );

in /etc/php/{ver}/apache2/php.ini

upload_max_filesize = 25M
post_max_size = 13M
memory_limit = 15M