douni1396 2015-04-02 09:14
浏览 58
已采纳

无法在WAMP中的phpmyadmin中增加文件上传大小和执行时间

I am using Wampserver (64 bits & PHP 5.5) 2.5. phpmyadmin inside of it is allowing me to import database of max 128mib and execution time is low. I have red all possible tutorials. I have changed php.ini ( both the one that I found from wamp icon and the one located in php folder ), but changes are not reflected to phpmyadmin. I have put upload_max size to 512M and all other stuff, plus I have set max_execution_time and other stuff to unlimited. It seems that changes from php.ini are not reflected to phpmyadmin. What the hell is going on? Yes I have restarted wamp, even PC too...

I am using windows 7 64 bit

  • 写回答

1条回答 默认 最新

  • duanrong5927 2015-04-02 11:22
    关注

    In WAMPServer 2.5 the PHP limits applied to phpMyAdmin can be found in this file \wamp\alias\phpmyadmin.conf

    It was done this way so that you do not have to mess with php.ini to increase these parameter which of course would effect every site that you may be developing/maintaining.

    This is what the file looks like:

    # to give access to phpmyadmin from outside 
    # replace the lines
    #
    # Require local
    #
    # by
    #
    # Require all granted
    #
    
    <Directory "d:/wamp/apps/phpmyadmin4.1.14/">
       Options Indexes FollowSymLinks MultiViews
       AllowOverride all
      <IfDefine APACHE24>
        Require local
      </IfDefine>
      <IfDefine !APACHE24>
        Order Deny,Allow
          Deny from all
          Allow from localhost ::1 127.0.0.1
        </IfDefine>
      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
    </Directory>
    

    So if you want to increase these parameters mentioned at the bottom of the file, do it in this file and it will only effect phpMyAdmin and nothing else.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?