Hello,

I have an issue : I cannot launch PHPMyAdmin.

My Apache's "error_log":

#cat error_log
[Wed May 05 15:36:40 2010] [error] [client 194.2.41.254] PHP Fatal error:  
session_start() [<a href='function.session-start'>function.session-start</a>]: 
Failed to initialize storage module: memcache (path: /var/php/5.2/sessions) in 
/sauv/var/apache2/2.2/phpmyadmin/libraries/session.inc.php on line 75
[Wed May 05 15:36:40 2010] [error] [client 194.2.41.254] PHP Stack trace:
[Wed May 05 15:36:40 2010] [error] [client 194.2.41.254] PHP   1. {main}() 
/sauv/var/apache2/2.2/phpmyadmin/index.php:0
[Wed May 05 15:36:40 2010] [error] [client 194.2.41.254] PHP   2. 
require_once() /sauv/var/apache2/2.2/phpmyadmin/index.php:35
[Wed May 05 15:36:40 2010] [error] [client 194.2.41.254] PHP   3. 
require_once() /sauv/var/apache2/2.2/phpmyadmin/libraries/common.inc.php:295
[Wed May 05 15:36:40 2010] [error] [client 194.2.41.254] PHP   4. 
session_start() /sauv/var/apache2/2.2/phpmyadmin/libraries/session.inc.php:75

It seems that I have a problem with "memcache".
So I tried to check if my Apache have the memcache support with:

<?php
phpinfo();
?>

And it seems ok: http://phpmyadmin.zeblods.com/test.php
Then I tried memcache with this code:

<?php
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");

$version = $memcache->getVersion();
echo "Server's version: ".$version."<br/>\n";

$tmp_object = new stdClass;
$tmp_object->str_attr = 'test';
$tmp_object->int_attr = 123;

$memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at 
the server");
echo "Store data in the cache (data will expire in 10 seconds)<br/>\n";

$get_result = $memcache->get('key');
echo "Data from the cache:<br/>\n";

var_dump($get_result);
?>

I cannot connect to the localhost's 11211 port: 
http://phpmyadmin.zeblods.com/memcachetest.php write "Could not connect".

I tried to check if the daemon is enabled: 
http://blogs.sun.com/trond/entry/memcached_in_solaris

# svccfg
svc:> select memcached
Pattern 'memcached' doesn't match any instances or services
# svcadm enable memcached
svcadm: Pattern 'memcached' doesn't match any instances
# uname -a
SunOS ZeblodServer 5.11 snv_130 i86pc i386 i86pc


How can I make it work ?

Thank you in advance for your answers.

Regards,
ZeblodS
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to