Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. There are 4 ways that you can choose to increase the maximum upload file size in WordPress.
  2.  
  3. 1. Update .htaccess file
  4.  
  5. php_value upload_max_filesize 128M
  6. php_value post_max_size 128M
  7. php_value memory_limit 256M
  8. php_value max_execution_time 300
  9. php_value max_input_time 300
  10. Change the numbers to the values that you need. The max execution time and max input time values are in seconds and might need to be increased further if your internet connection is slow.
  11.  
  12.  
  13. 2. Update wp-config.php file
  14.  
  15. @ini_set( 'upload_max_filesize' , '128M' );
  16. @ini_set( 'post_max_size', '128M');
  17. @ini_set( 'memory_limit', '256M' );
  18. @ini_set( 'max_execution_time', '300' );
  19. @ini_set( 'max_input_time', '300' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement