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 在若依框架下实现人脸识别
  • ¥15 网络科学导论,网络控制
  • ¥100 安卓tv程序连接SQLSERVER2008问题
  • ¥15 利用Sentinel-2和Landsat8做一个水库的长时序NDVI的对比,为什么Snetinel-2计算的结果最小值特别小,而Lansat8就很平均
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同