# What Are The Best PHP Settings For WordPress?

> Recommended php.ini values for MEC: upload_max_filesize, post_max_size, memory_limit, max_execution_time and max_input_vars.

Source: https://webnus.net/dox/modern-events-calendar/what-are-the-best-php-settings-for-wordpress/
Last updated: 2026-08-11

The Modern Events Calendar utilizes the fundamental setup of WordPress and can function seamlessly even with limited resources, so in this article, we will walk you through the Best PHP Settings for [MEC](https://webnus.net/dox/modern-events-calendar/general-settings/).

## Host configurations {#Host\_configurations}

To access these fields, please edit the “php.ini” file, which is located in the host (if you can’t find it then contact your host service provider)

## Best PHP Settings {#Best\_PHP\_Settings}

upload\_max\_filesize = 32M

post\_max\_size = 48M

memory\_limit = 256M

max\_execution\_time = 600

max\_input\_vars = 10000

max\_input\_time = 400

**[More Info](https://wordpress.org/documentation/article/editing-wp-config-php/)**

Reference: [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
