phpmyadmin error : Cannot start session without errors......

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

modify php.ini :
sudo vim /etc/php5/apache2/php.ini

session.use_cookies = 1
session.auto_start = 1
session.cookie_path = "N;/var/lib/php5"

或修改config.default.php[Ubuntu 13.10]
sudo vim /usr/share/phpmyadmin/libraries/config.default.php
搜尋:
/* Authentication type */
$cfg[ 'Servers '][$i][ 'auth_type '] = 'cookie ';
改成:
/* Authentication type */
$cfg[ 'Servers '][$i][ 'auth_type '] = 'http ';
也是方法之一。
=======================================
如果要解除phpmyadmin 登錄逾時1440秒的限制,方法如下:
sudo vim /etc/php5/apache2/php.ini
設定
session.gc_probability = 1 #註:gc的分子。
session.gc_divisor = 1000
session.gc_maxlifetime = 86400
再修改
sudo vim /usr/share/phpmyadmin/libraries/config.default.php
$cfg['LoginCookieValidity'] =43200
=======================================
php上傳檔案相關參數設定
sudo vim /etc/php5/apache2/php.ini

在上傳參數裏面有幾個設定要改:
max_execution_time = 300
script執行時間上限(單位:秒)

max_input_time = 300
script處理資料時間上限(單位:秒)

memory_limit=800M
系統記憶體(這個的值一定要設比下面兩項的值都大)

post_max_size=300M
設定POST發送時的容量

upload_max_filesize=300M
單次上傳檔案容量

default_socket_timeout = 300
Socket無回應斷線時間(單位:秒)

mysql.connect_timeout =-1
無回應斷線時間(單位:秒;-1代表不斷線一直等)

重啟apache2
sudo service apache2 restart

留言

  1. This on-line on line casino site additionally presents 바카라사이트 a great cryptocurrency welcome bonus worth one hundred pc as much as} $1,500. Unfortunately, there’s a slightly higher than average rollover requirement connected to this welcome bonus. You’ll have a full 2 weeks to play your favorite on line casino games and run away with the profits.

    回覆刪除

張貼留言

熱門文章