Maximum execution time of 360 seconds exceeded in C:\wamp\apps\phpmyadmin4.1.14

前端 未结 3 1289
遥遥无期
遥遥无期 2021-02-10 05:15

Im trying to backup a wordpress website from host and move it back on my local host and keep it as a sample for rebuilding. If have any workaround or maybe other methods I`m all

3条回答
  •  长发绾君心
    2021-02-10 05:43

    As you have phpMyAdmin4.1.14 installed I assume you are using WAMPServer 2.5

    In WAMPServer 2.5 the PHP resources used by phpMyAdmin are controlled from the phpMyAdmin alias config file. It was changed for exactly these situations, so you dont have to change the php.ini to add a ridiculously large values to parameters that effect your whole PHP environment.

    So to increase the relevant paameters you would do this :-

    Edit \wamp\alias\phpmyadmin.conf which should look like this by default

    Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"
    
    # to give access to phpmyadmin from outside 
    # replace the lines
    #
    # Require local
    #
    # by
    #
    # Require all granted
    #
    
    
       Options Indexes FollowSymLinks MultiViews
       AllowOverride all
      
        Require local
      
      
        Order Deny,Allow
          Deny from all
          Allow from localhost ::1 127.0.0.1
        
      php_admin_value upload_max_filesize 128M
      php_admin_value post_max_size 128M
      php_admin_value max_execution_time 360
      php_admin_value max_input_time 360
    
    

    Now change the parameters here, so they only effect what happens when you are running phpMyAdmin.

    These are the parameters you should amend

      php_admin_value upload_max_filesize 500M      <-- and probably this
      php_admin_value post_max_size 128M
      php_admin_value max_execution_time 620        <-- this for a start
      php_admin_value max_input_time 360
    

    But basically try a modification and see if it works, if not depending on the error amend the relevant parameter.

    Dont forget to restart Apache after each change you make to this file

    Oh and dont forget to undo the changes you made to php.ini

提交回复
热议问题