How to Increase PHP Time Limit

The PHP Time Limit is the amount of time (in seconds) that your site will spend on on a single operation before time out to avoid server lockups. An error message will appear when the operation reaches the time limit. Most hosts have set the PHP Time Limit to 30 seconds as the default. Please follow the steps below to increase the PHP memory limit.

Step 1: Login your hosting account (e.g., Hostgator Hosting);

Step 2: Click "File and Folder" tab from the ribbon;

Step 3: Click "Open File Manager";

Step 4: In the "File Manager" window, click "File", and type "user.ini" as the new file name, then click "Create New File";

Step 5: Right click the file and select "Edit" from the dialog box. In the "Edit" window, copy the row in if you want to increase the PHP Memory Limit to 300;

max_execution_time = 300;

If you want to also increase the "PHP Max Input Vars" (the maximum number of variables your server can use for a single function to avoid overloads) to 3000, you can copy the following two rows in the file.

max_input_vars = 3000;
max_execution_time = 300; 

Step 6: Make sure to save the changes after.

Leave a Reply