post_max_size does not change The Next CEO of Stack OverflowMaximum execution time in phpMyadminReference — What does this symbol mean in PHP?Showing all errors and warningsHow does PHP 'foreach' actually work?php.ini unable to change upload_max_filesizeHow to set default php.ini to be used, OSX Yosemitepost_max_size and upload_max_size in php.ini has no effect in LaravelPhp.ini changes not takeing on linux bitnami ubuntuHow to switch PHP one version to another version in MAC OS?How to install and make Wordpress and Siberian CMS work on the same Ubuntu 16.04 machine side by side?

How to safely derail a train during transit?

Why did we only see the N-1 starfighters in one film?

Are there languages with no euphemisms?

Can the Reverse Gravity spell affect the Meteor Swarm spell?

Fastest way to shutdown Ubuntu Mate 18.10

Why does C# sound extremely flat when saxophone is tuned to G?

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

How to get regions to plot as graphics

What happens if you roll doubles 3 times then land on "Go to jail?"

How do I go from 300 unfinished/half written blog posts, to published posts?

How to count occurrences of text in a file?

Whats the best way to handle refactoring a big file?

How do spells that require an ability check vs. the caster's spell save DC work?

What is the difference between "behavior" and "behaviour"?

Robert Sheckley short story about vacation spots being overwhelmed

Is a stroke of luck acceptable after a series of unfavorable events?

Can a single photon have an energy density?

Visit to the USA with ESTA approved before trip to Iran

Why does standard notation not preserve intervals (visually)

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

Is it okay to store user locations?

How can I open an app using Terminal?

Why is there a PLL in CPU?

How to make a variable always equal to the result of some calculations?



post_max_size does not change



The Next CEO of Stack OverflowMaximum execution time in phpMyadminReference — What does this symbol mean in PHP?Showing all errors and warningsHow does PHP 'foreach' actually work?php.ini unable to change upload_max_filesizeHow to set default php.ini to be used, OSX Yosemitepost_max_size and upload_max_size in php.ini has no effect in LaravelPhp.ini changes not takeing on linux bitnami ubuntuHow to switch PHP one version to another version in MAC OS?How to install and make Wordpress and Siberian CMS work on the same Ubuntu 16.04 machine side by side?










0















I changed post_max_size in the php.ini file and then restarted my webserver with



sudo systemctl restart apache2


However when I try to import a db file then I get the error (Max: 2,048KiB)



Also localhost/info.phpshows my modified post_max_size. But when I import the db file then it stills show the 2MB error.



I changed php7.3 to php7.1 with this command



sudo update-alternatives --set php /usr/bin/php7.1


I think problem was created when I switched php versions.



Thanks for helping me










share|improve this question



















  • 1





    You also have to change the upload_max_filesize value

    – Pavel Třupek
    Mar 7 at 14:07











  • try with ini_set('memory_limit', '-1');

    – devpro
    Mar 7 at 14:27















0















I changed post_max_size in the php.ini file and then restarted my webserver with



sudo systemctl restart apache2


However when I try to import a db file then I get the error (Max: 2,048KiB)



Also localhost/info.phpshows my modified post_max_size. But when I import the db file then it stills show the 2MB error.



I changed php7.3 to php7.1 with this command



sudo update-alternatives --set php /usr/bin/php7.1


I think problem was created when I switched php versions.



Thanks for helping me










share|improve this question



















  • 1





    You also have to change the upload_max_filesize value

    – Pavel Třupek
    Mar 7 at 14:07











  • try with ini_set('memory_limit', '-1');

    – devpro
    Mar 7 at 14:27













0












0








0








I changed post_max_size in the php.ini file and then restarted my webserver with



sudo systemctl restart apache2


However when I try to import a db file then I get the error (Max: 2,048KiB)



Also localhost/info.phpshows my modified post_max_size. But when I import the db file then it stills show the 2MB error.



I changed php7.3 to php7.1 with this command



sudo update-alternatives --set php /usr/bin/php7.1


I think problem was created when I switched php versions.



Thanks for helping me










share|improve this question
















I changed post_max_size in the php.ini file and then restarted my webserver with



sudo systemctl restart apache2


However when I try to import a db file then I get the error (Max: 2,048KiB)



Also localhost/info.phpshows my modified post_max_size. But when I import the db file then it stills show the 2MB error.



I changed php7.3 to php7.1 with this command



sudo update-alternatives --set php /usr/bin/php7.1


I think problem was created when I switched php versions.



Thanks for helping me







php post max size version






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 14:53









kalehmann

2,7331023




2,7331023










asked Mar 7 at 14:05









HaFiz UmerHaFiz Umer

1187




1187







  • 1





    You also have to change the upload_max_filesize value

    – Pavel Třupek
    Mar 7 at 14:07











  • try with ini_set('memory_limit', '-1');

    – devpro
    Mar 7 at 14:27












  • 1





    You also have to change the upload_max_filesize value

    – Pavel Třupek
    Mar 7 at 14:07











  • try with ini_set('memory_limit', '-1');

    – devpro
    Mar 7 at 14:27







1




1





You also have to change the upload_max_filesize value

– Pavel Třupek
Mar 7 at 14:07





You also have to change the upload_max_filesize value

– Pavel Třupek
Mar 7 at 14:07













try with ini_set('memory_limit', '-1');

– devpro
Mar 7 at 14:27





try with ini_set('memory_limit', '-1');

– devpro
Mar 7 at 14:27












2 Answers
2






active

oldest

votes


















2














Try to set upload_max_size and post_max_sizeto 128mb.



For further information take a look at the php configuration directives for file upload






share|improve this answer

























  • yes it change thank you brother

    – HaFiz Umer
    Mar 8 at 6:34


















1














You need to also change upload_max_filesize. If it is set to a smaller value, then it will limit the effect of post_max_size






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55045698%2fpost-max-size-does-not-change%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Try to set upload_max_size and post_max_sizeto 128mb.



    For further information take a look at the php configuration directives for file upload






    share|improve this answer

























    • yes it change thank you brother

      – HaFiz Umer
      Mar 8 at 6:34















    2














    Try to set upload_max_size and post_max_sizeto 128mb.



    For further information take a look at the php configuration directives for file upload






    share|improve this answer

























    • yes it change thank you brother

      – HaFiz Umer
      Mar 8 at 6:34













    2












    2








    2







    Try to set upload_max_size and post_max_sizeto 128mb.



    For further information take a look at the php configuration directives for file upload






    share|improve this answer















    Try to set upload_max_size and post_max_sizeto 128mb.



    For further information take a look at the php configuration directives for file upload







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 7 at 14:47









    kalehmann

    2,7331023




    2,7331023










    answered Mar 7 at 14:30









    Idris BlawIdris Blaw

    361




    361












    • yes it change thank you brother

      – HaFiz Umer
      Mar 8 at 6:34

















    • yes it change thank you brother

      – HaFiz Umer
      Mar 8 at 6:34
















    yes it change thank you brother

    – HaFiz Umer
    Mar 8 at 6:34





    yes it change thank you brother

    – HaFiz Umer
    Mar 8 at 6:34













    1














    You need to also change upload_max_filesize. If it is set to a smaller value, then it will limit the effect of post_max_size






    share|improve this answer





























      1














      You need to also change upload_max_filesize. If it is set to a smaller value, then it will limit the effect of post_max_size






      share|improve this answer



























        1












        1








        1







        You need to also change upload_max_filesize. If it is set to a smaller value, then it will limit the effect of post_max_size






        share|improve this answer















        You need to also change upload_max_filesize. If it is set to a smaller value, then it will limit the effect of post_max_size







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 7 at 14:27









        devpro

        13.9k32135




        13.9k32135










        answered Mar 7 at 14:12









        asibyasiby

        1,5711421




        1,5711421



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55045698%2fpost-max-size-does-not-change%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            1928 у кіно

            Захаров Федір Захарович

            Ель Греко