Difference between revisions of "WordPress PHP modifications"
From Jay's Cafe' Wiki
Jayctheriot (talk | contribs) (Created page with "<pre> if ( (!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) || (!empty( $_SERVER['HTTP_X_FORWARDED_FOR'])) ) { $_SERVER['HTTPS'] = 'on'; } /** * Disable security restri...") |
Jayctheriot (talk | contribs) m |
||
Line 1: | Line 1: | ||
Changes to {webroot}/wp-config.php | |||
<pre> | <pre> | ||
if ( (!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) || | if ( (!empty( $_SERVER['HTTP_X_FORWARDED_HOST'])) || | ||
Line 10: | Line 11: | ||
define(‘ALLOW_UNFILTERED_UPLOADS’, true); | define(‘ALLOW_UNFILTERED_UPLOADS’, true); | ||
@ini_set( 'upload_max_size' , '20M' ); | |||
@ini_set( 'post_max_size', '13M'); | |||
@ini_set( 'memory_limit', '15M' ); | |||
</pre> | |||
in /etc/php/{ver}/apache2/php.ini | |||
<pre> | |||
upload_max_filesize = 25M | |||
post_max_size = 13M | |||
memory_limit = 15M | |||
</pre> | </pre> |
Revision as of 09:03, 14 October 2019
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