Have you ever encountered a message like “Maximum execution time of 30 seconds exceeded”? This means a process on your WordPress site is taking too long and timing out.
But don’t worry, here are a few ways to fix it:
Method 1: Edit wp-config.php
- Locate: Find the
wp-config.phpfile in the root directory of your WordPress installation. - Backup: Make a copy of this file just in case.
- Edit: Open the file and add the following line:
PHP
set_time_limit(300); This sets the execution time limit to 300 seconds (5 minutes).
Method 2: Edit .htaccess
- Locate: Find the
.htaccessfile, also in your WordPress root directory. - Backup: Make a copy of this file.
- Edit: Add the following line:
php_value max_execution_time 300Method 3: Edit php.ini (Advanced)
- Locate: This file’s location varies depending on your hosting. Contact your host for help if needed.
- Backup: Make a copy of the
php.inifile. - Edit: Add the following line:
max_execution_time = 300Important Notes:
- It’s best to only increase the execution time as much as necessary. Setting it too high can impact your website’s performance.
- If you’re not comfortable editing these files, ask your hosting provider for assistance or consider using a WordPress plugin designed for this purpose.
Let me know if you’d like any more tips on WordPress optimization!
#WordPress #Troubleshooting #WebsitePerformance
Bijay Pokharel
Bijay Pokharel is the Founder and Editor-in-Chief of Abijita, an independent technology and cybersecurity news publication established in 2017. A specialist in cybersecurity journalism, Bijay covers vulnerability research, malware analysis, enterprise data breaches, digital privacy, and emerging technologies. His work translates complex technical threats into precise, accessible, and actionable intelligence for security professionals and general readers alike. His reporting and investigative coverage are routinely cited and republished across leading technology and security media.



