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.com and a freelance technology writer covering the tech industry since 2017. He specializes in cybersecurity, digital privacy, malware, vulnerabilities, and online safety, with a strong interest in internet protection and women’s online security. A dedicated tech enthusiast and continuous learner, Bijay approaches his professional work with clarity, rational thinking, and a calm, solution-oriented mindset.





