Title: Increase Parameters using wp-config?
Last modified: February 7, 2024

---

# Increase Parameters using wp-config?

 *  Resolved [asker1](https://wordpress.org/support/users/asker1/)
 * (@asker1)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/increase-parameters-using-wp-config/)
 * 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)

 *  [Aniekan](https://wordpress.org/support/users/anieeedet/)
 * (@anieeedet)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/increase-parameters-using-wp-config/#post-17407675)
 * Hi [asker1](https://wordpress.org/support/users/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](https://wordpress.org/support/users/asker1/)
 * (@asker1)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/increase-parameters-using-wp-config/#post-17410054)
 * Thank you [Aniekan](https://wordpress.org/support/users/anieeedet/)!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Increase Parameters using wp-config?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [asker1](https://wordpress.org/support/users/asker1/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/increase-parameters-using-wp-config/#post-17410054)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
