UnixServerAdmin

Server Administration & Management

Error on clicking PhpMyAdmin

Warning: session_start() [_function.session-start_(http://xxx.xxx.xxx:2082/3rdparty/phpMyAdmin/function.session-start) ]: SQLite: failed to open/create session database `/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb – unable to open database:

/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/session.inc.php on line 86

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: sqlite (path:
/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb) in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/session.inc.php on line 86

SOLUTION:

1) Login to shell of the server using root login details and open the file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini using vi or any other editor

2) Search for [Session] and change the following

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

======

TO
======
session.save_handler = files
session.save_path = /tmp

======

3) Save and exit

4) Restart apache service.

# /scripts/restartsrv httpd

Advertisements

February 7, 2011 Posted by | PHP | , , | 2 Comments