# How to Increase PHP Time Limit for a WordPress Site?

The PHP Time Limit is the amount of time that your site will spend on a single operation before timing out. When an operation reaches the time limit set, then it will return a fatal error that looks like this:

```
Fatal error: Maximum execution time of xx seconds exceeded...
```

The default value for PHP time limit on most hosts for the PHP Time Limit is 30 seconds. You can increase this limit by following any of the methods mentioned below.

#### Method 1: Edit file .htaccess:

Add the following to **.htaccess** (*Make sure you back up .htaccess before you edit it*):

`php_value max_execution_time 300`

#### Method 2: Edit file wp-config.php:

Add the following to **wp-config.php**:

`set_time_limit(3000);`

#### Method 3: Editing php.ini

Add the following to php.ini:

`max_execution_time = 300`

Read more about Maximum execution time exceeded on [**WordPress.org**](https://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded)**.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://uxper.gitbook.io/civi-job-board-wordpress-theme/faqs/how-to-increase-php-time-limit-for-a-wordpress-site.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
