Go Back   Web Server Hosting Forum by BODHost > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-08, 21:48
BOD Member
 
Join Date: Oct 2008
Posts: 30
Default phpMyAdmin - Common Error

To solve the common errors which occur mostly after browsing phpMyAdmin follows the steps as per your error message.

1)Cannot start session
Quote:
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
Edit the file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini

Quote:
session.save_handler = sqlite
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb

To

session.save_handler = files
session.save_path = /tmp
2) Function.session-write-close error

Quote:
Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 44
Quote:
1st check tmp/ or /var/tmp full or not?
Quote:
2nd gave the permission

chmod 777 tmp/
Quote:
3rd remove the session file(s) from /tmp

rm -rf sess_*

3)Invalid argument supplied for foreach() error

Quote:
Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line 155

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php:52) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154
You need to change output_buffering in
/usr/local/cpanel/3rdparty/lib/php.ini file.
Quote:
"output_buffering = Off"

To

"output_buffering = On"
After made changes in php.ini file then restart cPanel

Quote:
service cpanel restart
or
/etc/init.d/cpanel restart
__________________
Regards
George
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:09.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.