English 中文(简体)
phpMyAdmin配置
原标题:phpMyAdmin configuration
  • How do I increase phpmyadmin session timeout?
  • How do I increase phpmyadmin import file size limit(currently it says Max: 2,048KiB). I tried changing upload_max_filesize in php.ini but it didn t make any difference.
最佳回答

页: 1LoginCookieValidity = 3600 * 9; / 9个小时

http://wiki.phpmyadmin.net/pma/Config# CarloinCookieValidity”

关于第二个问题,在更换了上载荷后,在实验室内,您是否重新启用了藏书(或你使用的任何网络服务器)?

问题回答

www.un.org/Depts/DGACM/index_spanish.htm How to set phpMyAdminail 1440 second timeout Superior:

  1. 地点:php.ini

    el@apollo:/var/lib/phpmyadmin$ 地点:php.ini
    /etc/php5/apache2/php.ini
    
  2. 打开档案作为根基,发现:

    session.gc_maxlifetime = 1440
    
  3. (5 000秒)

    session.gc_maxlifetime = 500000
    
  4. 重新启动。

这样做会减少安全,因为这样会增加交叉点描述的机会,在中间袭击中增加男子的机会。 在你找到服务器之前,它会打上所有 f子和游戏,成为用于信用卡的底层农作的一部分。

php.ini <>/strong>文档中,最好在config.inc.php文档中添加以下内容:

ini_set( session.gc_maxlifetime ,  86400 );

这样,你不会损害其他硬木产品的安全,也不会由于经常收拾垃圾而导致弹药储存过多。

  1. Edit phpMyAdmin s config.inc.php,并增加或更新 价值如下:

    $cfg[ LoginCookieValidity ] = 3600 * 9; // 9 hours
    
  2. 载荷超过2M:

    cd /etc/php5/apache2/php.ini
    
    sudo nano php.ini
    
  3. 检索upload_max_filesize in php.ini and change Value to 64M (for 64 Mb):

    upload_max_filesize = 64M
    
  4. 救助和撤离。

  5. Restartcode>apache:

    sudo /etc/init.d/apache2 restart
    
  6. Finish!

For the first question, you need to change the $cfg[‘LoginCookieValidity’] config in the config.inc.php. Open config.inc.php in the phpMyAdmin “root” directory. Look for a line that contains this: $cfg[‘LoginCookieValidity’]. Set the value to the desired amount of seconds. If the line doesn t exist, just add it like this:

$cfg[‘LoginCookieValidity’] = 3600; //(3600 = one hour)

你们需要再次到别克斯岛。

这还假设,住房价格指数会议垃圾收集工作也相应设立。 可以通过多种方式做到这一点:

  • php.ini; add a line (or change an existing) that contains session.gc_maxlifetime = <seconds>
  • Apache configuration; add a line to the appropriate block that says php_admin_value session.gc_maxlifetime <seconds>
  • config.inc.php (phpMyAdmin); after the previously edited line, add a line with ini_set(‘session.gc_maxlifetime’, <seconds>);

第二个问题:

You need to change both, upload_max_filesize and post_max_size in your php.ini. The post_max_size value needs to be at least the upload_max_filesize value.

不要忘记重新启用服务器

Reference

Try by changing post_max_size in /etc/php.ini file.

If you wished to keep phpMyAdmin from timing out so often, you might add this line:

cfg [LoginCookieValidity] = 86400;

By default, phpMyAdmin times out every 1440 seconds; to change this, change the session.gc_maxlifetime in php.ini as follows:

session.gc_maxlifetime = 86400

我知道这一职位已经解答,但我刚刚解决了同一问题,因此,我认为我要补充我的调查结果,帮助其他人。

我需要增加PpMyAdmin上载卷宗的大小,从2 048KiB的拖欠时间起,我也改变了上载量——最大程度——档案和员额——最大化和记忆——有限,但没有任何变化。

在我使用“S.R.”时,我用手法来找到问题;用文字来识别“PHP”的所在地。 当时有人说,C:Program files (x86)iis expressPHPv5.5php.ini,但我最后在PhpMyAdmin主页上注意到,网络服务器正在运行:5.6.31。 因此,我更新了PHP的上载量、员额和记忆限制。 两种版本5.5和5.6的实物和磷酸盐进口限值均有所增加。

Edit phpMyAdmin s config.inc.php,并增加或更新 价值如下:

$cfg[ LoginCookieValidity ] = 3600 * 9; // 9 hours

In wamp or xampp or anything you use at php.ini, Search for upload_max_filesize this is where you should change it,

我们建议你不要使用超过64M文档,有时造成坠毁:

upload_max_filesize = 64M

救助和撤离。

我在Poelinca的答复中补充说,这一限额的机制可在PMA来源libraries/Config.class.php下找到,

<代码>上载荷:

如果定义或5M其他定义,则使用<代码>upload_max_filesize,如果界定max_upload_size<<>code>,则该编码还将获得两者的权重。

(PMA版本 3.3.7deb7)





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...