{"action":"created","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/11","labels_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/11/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/11/events","html_url":"https://github.com/aerospike/aerospike-client-php/issues/11","id":53225394,"number":11,"title":"PHP session handler","user":{"login":"skynet","id":139233,"avatar_url":"https://avatars.githubusercontent.com/u/139233?v=3","gravatar_id":"","url":"https://api.github.com/users/skynet","html_url":"https://github.com/skynet","followers_url":"https://api.github.com/users/skynet/followers","following_url":"https://api.github.com/users/skynet/following{/other_user}","gists_url":"https://api.github.com/users/skynet/gists{/gist_id}","starred_url":"https://api.github.com/users/skynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skynet/subscriptions","organizations_url":"https://api.github.com/users/skynet/orgs","repos_url":"https://api.github.com/users/skynet/repos","events_url":"https://api.github.com/users/skynet/events{/privacy}","received_events_url":"https://api.github.com/users/skynet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-client-php/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-01T18:27:26Z","updated_at":"2015-01-04T05:04:42Z","closed_at":"2015-01-01T22:57:10Z","body":"Having PHP set (installed extension with composer) to use aerospike as session handler I get this:\r\n\r\n```\r\nextension=aerospike.so\r\naerospike.udf.lua_system_path=/opt/aerospike/client-php/sys-lua\r\naerospike.udf.lua_user_path=/opt/aerospike/client-php/usr-lua\r\n\r\nsession.save_handler = aerospike\r\nsession.save_path = 127.0.0.1:3000\r\n```\r\n\r\n```\r\nsession_start();\r\n```\r\n\r\n```Fatal error: session_start(): Failed to initialize storage module: aerospike (path: 127.0.0.1:3000)```\r\n\r\nRunning tests shows that aerospike server works:\r\n\r\n```\r\nphp vendor/aerospike/aerospike-client-php/examples/performance/read-write-mix.php\r\nConnecting to the host ≻ [✓]\r\nClear out the record that may exist at test.performance with PK=1 ≻ [✓]\r\nInitialize the record used for the serial put/get performance test ≻ [✓]\r\nRun the mixed read/write performance test ≻ [✓]\r\n100000 serial operations, 90000 reads, 10000 writes (every 10 records)\r\nFailed reads: 0\r\nFailed writes: 0\r\nTotal time: 5.837378978729248s TPS:17130.97613918657\r\n```"},"comment":{"url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/comments/68621310","html_url":"https://github.com/aerospike/aerospike-client-php/issues/11#issuecomment-68621310","issue_url":"https://api.github.com/repos/aerospike/aerospike-client-php/issues/11","id":68621310,"user":{"login":"rbotzer","id":133497,"avatar_url":"https://avatars.githubusercontent.com/u/133497?v=3","gravatar_id":"","url":"https://api.github.com/users/rbotzer","html_url":"https://github.com/rbotzer","followers_url":"https://api.github.com/users/rbotzer/followers","following_url":"https://api.github.com/users/rbotzer/following{/other_user}","gists_url":"https://api.github.com/users/rbotzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbotzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbotzer/subscriptions","organizations_url":"https://api.github.com/users/rbotzer/orgs","repos_url":"https://api.github.com/users/rbotzer/repos","events_url":"https://api.github.com/users/rbotzer/events{/privacy}","received_events_url":"https://api.github.com/users/rbotzer/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T05:04:42Z","updated_at":"2015-01-04T05:04:42Z","body":"No, it's not too heavy to run in Apache prefork. Each of those forked Apache processes handles multiple requests so the connection overhead is only paid once at the very beginning. If you use shared memory the cluster tending (the thread monitoring the cluster) is only done by one of the Apache processes and shared by all. That reduces the overhead further.\r\n\r\nRedis is a very different system, it is not a distributed database and it does not have a client that tracks and adjusts automatically to the cluster changing.\r\n\r\nSince using Aerospike as the session handler for PHP worked quite well for us in testing I'd like to figure out the problem you're seeing and fix it. Can you provide me the aerospike.conf you're using (the one that includes the 'php' namespace)?\r\n\r\nThanks.\r\n"}}