> For the complete documentation index, see [llms.txt](https://devnex.gitbook.io/comi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devnex.gitbook.io/comi/faqs/how-to-increase-the-php-memory.md).

# How to increase the PHP memory

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 3000`

### **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 = 3000`

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://devnex.gitbook.io/comi/faqs/how-to-increase-the-php-memory.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.
