How to Increase Max Execution Time Using .htaccess
If you’ve been struggling with increasing the max execution time for your website, you’re not alone. Many users encounter this issue, especially when using cPanel, which doesn’t allow direct modifications to php.ini. However, if you’re using the Apache system with PHP, there’s a simple workaround using the .htaccess file.
This guide provides a shortcut to solve the issue without requiring access to WHM, WHMCS, root privileges, or a VPS/dedicated server.
Requirements
- Updated PHP Version: Ensure your PHP version is at least 5.x or higher.
- Verify PHP Version:
- Create a file named
info.php. - Add the following code to the file:
- Upload this file to your server (e.g.,
yourdomain.com/info.php). - Open the file in your browser and search for
PHP Version.
- Create a file named
- Check Current Max Execution Time:
- On the same page, search for
max_execution_timeto view the current limit.
- On the same page, search for
Steps to Increase Max Execution Time
- Open your website’s
.htaccessfile.- This file is located in your website’s root directory.
- Add the following code to the
.htaccessfile:- Explanation:
900seconds equals 15 minutes.- You can adjust this value based on your requirements.
- Explanation:
- Save the file and test your changes.
Important Notes
- This method works only if your server uses the Apache module and PHP is configured accordingly.
- For PHP 7.x or later, you may need to replace
mod_php5.c mod_php7.c.- Always back up your
.htaccessfile before making changes.
By following this simple guide, you can increase your website’s max execution time without relying on root access or advanced hosting features. If you encounter issues, consult your hosting provider for further assistance.

Post a Comment
Give your reviews about this blog. Leave your comments. what do you think about this post?
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe FusionMarketPro.online blog.
---------------------------------------
Thanks for visiting FusionMarketPro.Online.
==========================================
Join Sami Jeweller and Shop online jewelry for your someone special.
==========================================
Best Regards