Title: max_execution_time
Last modified: November 26, 2019

---

# max_execution_time

 *  [limaanapaula1919](https://wordpress.org/support/users/limaanapaula1919/)
 * (@limaanapaula1919)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/max_execution_time-2/)
 * Had problems to import products to WP and to resolve this I need to increase 
   max_execution_time of my server to 300. How can I do it?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Anirban](https://wordpress.org/support/users/anirbanjyoti/)
 * (@anirbanjyoti)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12175982)
 * Method 1: Edit file wp-config.php:
    Add the following to wp-config.php:
 * set_time_limit(300);
 *  [Anirban](https://wordpress.org/support/users/anirbanjyoti/)
 * (@anirbanjyoti)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12175983)
 * Method 1: Edit file wp-config.php:
    Add the following to wp-config.php:
 * set_time_limit(300);
 * Method 2: Edit file .htaccess:
    Make sure you back up .htaccess before you edit
   it.
 * Add the following to .htaccess:
 * php_value max_execution_time 300
 * Method 3: Editing php.ini
    Add the following to php.ini:
 * max_execution_time = 300
 *  [Kartik Shukla](https://wordpress.org/support/users/kartiks16/)
 * (@kartiks16)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12175984)
 * Hello limaanapaula1919,
 * Below are some of the methods which can help you to increase max_execution_time.
 * Method 1: Edit file wp-config.php:
    Add the following to wp-config.php:
 * `set_time_limit(300);`
 * Method 2: Edit file .htaccess:
    Make sure you back up .htaccess before you edit
   it.
 * Add the following to .htaccess:
 * `php_value max_execution_time 300`
 * Method 3: Editing php.ini
    Add the following to php.ini:
 * `max_execution_time = 300`
 * More information can be found at [https://wordpress.org/support/article/common-wordpress-errors/](https://wordpress.org/support/article/common-wordpress-errors/)
 * Let me know if this helps.
 * Regards,
    Kartik
 *  Thread Starter [limaanapaula1919](https://wordpress.org/support/users/limaanapaula1919/)
 * (@limaanapaula1919)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12176023)
 * Thank you for your replay. as I am new here I have some problems to find pages
   like that. Where can I find wp-config.php? I just can’t see it.
    Thank you.
 *  [Anirban](https://wordpress.org/support/users/anirbanjyoti/)
 * (@anirbanjyoti)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12176136)
 * Thank you limaanapaula1919
 * Okay just a time
    At first you login your website cpanel>> Next go into public.
   html> you can see> your website files
 * Now you will find here wp-config.php
 * And add that code. Thats it
 *  [majorleo](https://wordpress.org/support/users/majorleo/)
 * (@majorleo)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12637694)
 * There are 3 methods given to modify 3 different files:
    Do we need to modify 
   all of them or only one file is sufficient? Which one? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘max_execution_time’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [max_execution_time](https://wordpress.org/support/topic-tag/max_execution_time/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [majorleo](https://wordpress.org/support/users/majorleo/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/max_execution_time-2/#post-12637694)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
