Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Change PHP Max Input Vars

    WordPress (Managed)
    2
    3
    327
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      will last edited by

      I tried to change this value by adding the following to /wp-admin.php file...

      /** Increased Memory Limit. */
      define('WP_MEMORY_LIMIT', '1024M');
      define('WP_MAX_MEMORY_LIMIT', '2048M');
      set_time_limit(300);
      @ini_set( 'max_input_vars' , 5000 );
      

      But this still shows up in some dashboard software I'm running:

      PHP Memory Limit	256 MB
      PHP Max Input Vars	1800
      
      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @will There is a /app/data/php.ini. You can try putting the value there.

        [PHP]
        max_input_vars = 5000
        
        1 Reply Last reply Reply Quote 2
        • W
          will last edited by

          @girish said in Change PHP Max Input Vars:

          [PHP]
          max_input_vars = 5000

          It worked, thanks!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB