Site icon CodeRevolution Knowledge Base

How to increase the max_execution_time settings on your server?

Here’s a tutorial on how to increase the maximum execution time in WordPress:

Step 1: Locate the php.ini file

  1. Log in to your WordPress hosting account or connect to your server via FTP (File Transfer Protocol).
  2. Navigate to the root directory of your WordPress installation.
  3. Look for the php.ini file. If you can’t find it, contact your hosting provider for assistance as some hosts may have specific locations or alternative methods for modifying PHP settings.

Step 2: Open the php.ini file

  1. Right-click on the php.ini file and choose “View/Edit” or download it to your local computer and open it with a text editor.

Step 3: Adjust the max_execution_time value

  1. Inside the php.ini file, search for the line that contains max_execution_time.
  2. By default, this value is set to 30 seconds. Change the value to the desired maximum execution time you want (e.g., 90 seconds, 120 seconds, etc.). For example:
    max_execution_time = 600
  3. Save the changes and close the php.ini file.

Step 4: Verify the new max execution time

  1. Log in to your WordPress admin dashboard.
  2. Go to “Tools” and select “Site Health.”
  3. Inside the Site Health screen, click on the “Info” tab.
  4. Look for the “Server” section and find the “max_execution_time” value. It should reflect the new execution time you set.

Note: If you don’t have access to the php.ini file or your hosting environment doesn’t allow direct modifications, you can try alternative methods such as using an .htaccess file or modifying the wp-config.php file. However, these methods might not be available or recommended on all hosting platforms.

That’s it! You have successfully increased the maximum execution time for your WordPress installation. This change allows WordPress to process longer tasks without timing out, which can be helpful for resource-intensive operations or plugins that require more time to complete certain tasks. Remember to make a backup of the original php.ini file before making any modifications to ensure you can revert back if needed.

Exit mobile version