How to Fix “Fatal Error: Maximum Execution Time Exceeded” in WordPress
If you're seeing a “Fatal error: Maximum execution time of XX seconds exceeded” message on your WordPress site, it means a PHP script took too long to run and was stopped by the server. This can occur during theme/plugin installations, updates, or even basic site operations.
Thankfully, this is a common issue and can be easily resolved using cPanel.
What Causes the Error?
- PHP script taking too long to execute (especially on slow servers)
- Hosting limits set too low (default is often 30 seconds)
- Plugin or theme conflicts during execution
- Heavy tasks like large file imports or complex queries
Step-by-Step: How to Fix It Using cPanel
1. Increase Max Execution Time via php.ini or MultiPHP INI Editor
If your host uses MultiPHP:
- Log into cPanel
- Go to Software > MultiPHP INI Editor
- Select your domain from the dropdown
- Find “max_execution_time” and increase it (try 300 or 600)
- Click Apply
If MultiPHP isn’t available:
- In File Manager > public_html
- Create or edit a file named php.ini or .user.ini
- Add the following line:
max_execution_time = 300
Save and test your site again.
2. Edit .htaccess File
If php.ini doesn’t work, try updating .htaccess:
- Go to public_html in File Manager
- Edit the .htaccess file
- Add the following line at the top or bottom:
php_value max_execution_time 300
Note: This may cause a 500 error on some shared hosts. If so, remove the line immediately.
3. Increase Time Limit via wp-config.php
Another option is to define the execution time from WordPress directly:
- Edit wp-config.php in File Manager
- Add this line above “That’s all, stop editing”:
set_time_limit(300);
4. Deactivate Problematic Plugin or Theme
If the error started after installing or updating a plugin or theme:
- Rename the plugin or theme folder via wp-content
- Refresh your site to see if the issue disappears
5. Contact Hosting Provider
If none of these methods work, your host may enforce hard limits on execution time.
- Contact support and ask them to increase the PHP max_execution_time for your domain
- They can usually adjust this in under 5 minutes
Final Thoughts
The “Maximum execution time exceeded” error is annoying but fixable. By adjusting PHP settings through cPanel, you can restore your site functionality in minutes.
Supercharge Your Hosting Experience with RDPCore.com
At RDPCore.com, we help you avoid timeouts and errors with:
- Optimized PHP configuration via cPanel
- No restrictive server limits for WordPress users
- 24/7 expert support for error resolution
- Fast SSD hosting built for performance and scalability
Don’t let timeouts hold you back—start hosting smarter at https://rdpcore.com
yorum Yap
E-posta hesabınız yayımlanmayacak. Gerekli alanlar işaretlendi *