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.php
file 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
.htaccess
file, also in your WordPress root directory. - Backup: Make a copy of this file.
- Edit: Add the following line:
php_value max_execution_time 300
Method 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.ini
file. - Edit: Add the following line:
max_execution_time = 300
Important 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 creator and owner of Abijita.com. He is a freelance technology writer focusing on all things pertaining to Cyber Security. The topics he writes about include malware, vulnerabilities, exploits, internet defense, women's safety and privacy, as well as research and innovation in information security. He is a tech enthusiast, keen learner, rational and cool person in his professional activities and challenges.
Related posts
Recent Posts
Subscribe
Cybersecurity Newsletter
You have Successfully Subscribed!
Sign up for cybersecurity newsletter and get latest news updates delivered straight to your inbox. You are also consenting to our Privacy Policy and Terms of Use.