How to import larger files than the default in wordpress

    The default import file into wordpress with Blogger / blogspot source file is 2MB. With the wordpress source file is 2-> 8MB. You have a larger file than the default, what to do?

    The way to import larger files by default in wp is quite simple, as long as you have access to the host manager to be able to interfere with the wp management system!

    How to import larger files than the default in wp

    Log into the hosting manager
    I use it as Cpanel, so for example:  File manager  in Cpanel
    >> Categories: / public_html / wp-admin /

    From here you create a new file called php.ini with the following code line:

    memory_limit = 64M
    upload_max_filesize = 1000M
    post_max_size = 1000M
    After creating the file, remember to save and Reload the manager in Cpanel to update it!

    And this is the final result

    From now on you can upload / import files with data up to 1000MB into wordpress
    Goodluck ^^
    Once I did not follow the above method, so I had to do another way

    Adding 02 ways to increase the file upload size

    01 add the following code to the functions.php file in the theme
    @ini_set( ‘upload_max_size’ , ’64M’ );
    @ini_set( ‘post_max_size’, ’64M’);
    @ini_set( ‘max_execution_time’, ‘300’ );
    02 add the following code to the .htacess file
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300
    With the above methods that do not work, you need to contact the support of the Server You are hiring! 

    No comments