Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Last active October 8, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save abdullahbutt/e845342f54287d13c471 to your computer and use it in GitHub Desktop.
Save abdullahbutt/e845342f54287d13c471 to your computer and use it in GitHub Desktop.
wamp timeout settings
In php.ini, make below changes:
max_execution_time = 1800
To ensure phpMyAdmin does NOT timeout:
Once you're log into phpmyadmin look on the top navigation for "Settings" and click that then "Features" and you'll find "Login cookie validity" which is typically set to 1440.
OR
To Increase the phpMyAdmin Session Timeout, open config.inc.php in the root phpMyAdmin directory and add this setting (anywhere).
$cfg['LoginCookieValidity'] = <your_new_timeout>;
Where <your_new_timeout> is some number larger than 1800.
Then session time of login also needs to be updated according to cookie validity time.
Go to php.ini & make below change
session.gc_maxlifetime = 3600
Note:
Always keep on mind that a short cookie lifetime is all well and good for the development server. So do not do this on your production server.
@abdullahbutt
Copy link
Author

Increase the limits smiling:

Left click wamp > php> php.ini

Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

Change to:
post_max_size = 12M
upload_max_filesize = 12M
max_execution_time = 1800
max_input_time = 1800
memory_limit = 512M

THEN open
C:\wamp\apps\phpmyadmin4.0.4\config.inc.php
in the phpmyadmin, open config.inc.php you can increase the time out from 300sec to infinity:
add this line

$cfg['ExecTimeLimit'] = 0;

@bashar042
Copy link

Thanks, brother

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment