• Resolved asker1

    (@asker1)


    Hello,

    I need to increase:

    • PHP Time Limit
    • PHP Max Input Vars
    • upload_max_size
    • max_execution_time
    • post_max_size

    The web host does not use php.ini, they use a file called phprc which I cannot locate. They said that I can increase ‘PHP Time Limit’ and ‘PHP Max Input Vars’ with wp-config.php using the DEFINE function.

    I assume that it would be the same sort of thing with the ‘upload_max_size’, ‘max_execution_time’, and ‘post_max_size’.

    OK, but what are the DEFINE syntaxes for each parameter and where does it go in the wp-config? Or maybe there is a better way.

    Thank you for your assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi asker1,
    If your web host does not use php.ini and instead uses phprc, you can still increase the first two parameters by using the DEFINE function in your wp-config.php file.

    To increase PHP Time Limit, you can add the following syntax to your wp-config.php file:

    define('WP_MEMORY_LIMIT', '256M');
    set_time_limit(300);

    To increase PHP Max Input Vars, you can use the following syntax:

    define('PHP_MAX_INPUT_VARS', 3000);

    To increase upload_max_size, max_execution_time, and post_max_size, you can add the following lines to your .htaccess file:

    php_value upload_max_filesize 64M
    php_value max_execution_time 300
    php_value post_max_size 64M


    You can replace 64M and 300 values with the desired values for each parameter, respectively.

    Note:?Increasing limits can consume more server resources like memory and CPU.?Ensure your hosting plan can handle the load.?Contact your web host if unsure.

    Let me know if you have any further concerns.

    Regards

    Thread Starter asker1

    (@asker1)

    Thank you Aniekan!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Increase Parameters using wp-config?’ is closed to new replies.