---
title: "Understanding PHP�s max_execution_time"
source: "https://docs.nexcess.com/software/kadence/solid/php-max-execution-time/"
description: "Coming soon: SolidWP is becoming Kadence. You may see both names used while we update the product, documentation, and customer experience. The max_execution_tim…"
vertical: "Software"
area: "Solid"
date: "2025-02-14"
last_modified: "2026-08-12"
---

# Understanding PHP�s max_execution_time

**Coming soon:** SolidWP is becoming Kadence. You may see both names used while we update the product, documentation, and customer experience.

The `max_execution_time` setting in PHP controls how long a script can run before the server forcefully stops it. By default, many hosting environments limit this to **30 seconds**, which may not be sufficient for resource-intensive tasks like running backups, imports, or complex plugin operations.

## Why Adjust max\_execution\_time?

Certain plugins or site operations�especially those involving backups, data imports, or scanning tools�require more time to complete. If the script exceeds the server�s time limit, it will be terminated early, potentially causing errors or incomplete actions.

Setting this value higher gives those processes a better chance to finish successfully.

## Method 1: Editing php.ini

If you have direct access to the server’s `php.ini` file:

1. Locate the `php.ini` file. This is often found in the root of your server�s PHP configuration or under a specific version directory.
2. Open the file in a text editor.
3. Find the line that looks similar to: `max_execution_time = 30` (It may have another value set)
4. Change it to: `max_execution_time = 300`
5. Save the file
6. Restart the PHP server

## Method 2: Using cPanel (MultiPHP INI Editor)

If your hosting provider offers cPanel with the MultiPHP INI Editor:

1. Log in to your cPanel dashboard.
2. Go to the **Software** section and open **MultiPHP INI Editor**.
3. In �Basic Mode,� select the domain or directory for your site.
4. Scroll down to the `max_execution_time` setting.
5. Increase the value (e.g., to `300`).
6. Click **Apply** to save your changes.

### When to Use This Method

- You are on shared hosting and do not have direct access to `php.ini`.
- Your host provides cPanel and enables PHP configuration changes through the UI.

## Method 3: For Local Environments (MAMP, etc.)

If working in a local development environment like **MAMP**:

1. Open your MAMP directory.
2. Navigate to: `MAMP > conf > php > [version folder] > php.ini`
3. Open `php.ini` in a text editor.
4. Locate: `max_execution_time = 30`
5. Change to: `max_execution_time = 300`
6. Save the file and restart MAMP.

### Tip for MAMP Users

Ensure you�re editing the correct PHP version used by your site in MAMP. You can verify the active version from the MAMP start screen.

## Additional Notes

- Some managed hosting providers override local `php.ini` settings. In these cases, changing the value through cPanel or contacting support may be required.
- After adjusting the value, verify it has been applied by checking your site’s PHP info output (e.g., using `phpinfo()` or a plugin that shows server settings).
