Subscribe To Our Newsletter

Sign Up Now To Get SEO and Programming Tips

We Hate Spam! Really, It's terrible and we never do it.

Increase Max Execution Time With .htaccess file

Max Execution Time
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

  1. Updated PHP Version: Ensure your PHP version is at least 5.x or higher.
  2. Verify PHP Version:
    • Create a file named info.php.
    • Add the following code to the file:
      php

      <?php phpinfo(); ?>
    • Upload this file to your server (e.g., yourdomain.com/info.php).
    • Open the file in your browser and search for PHP Version.
  3. Check Current Max Execution Time:
    • On the same page, search for max_execution_time to view the current limit.

Steps to Increase Max Execution Time

  1. Open your website’s .htaccess file.
    • This file is located in your website’s root directory.
  2. Add the following code to the .htaccess file:
    apache

    <IfModule mod_php5.c> php_value max_execution_time 900 </IfModule>
    • Explanation:
      • 900 seconds equals 15 minutes.
      • You can adjust this value based on your requirements.
  3. 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 
with 
mod_php7.c.
  • Always back up your .htaccess file 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.

Share this article :

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

 
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger