php - Cannot find save handler 'redis' -


i running php 5.4 hosted web app on azure. manage session handling have configured redis cache instance on azure.

i have set session save path & handler:

session.save_handler = redis session.save_path = "tcp://kbcache.redis.cache.windows.net:6379?auth=***" 

i have configured redis extensions:

php_extensions  bin\php_igbinary.dll appsetting_php_extensions   bin\php_igbinary.dll php_extensions02    bin\php_redis.dll appsetting_php_extensions02 bin\php_redis.dll 

however when browse website receive message:

warning: session_start(): cannot find save handler 'redis' - session startup failed in d:\home\site\wwwroot\index.php(22) : eval()'d code on line 2

what missing?

[update pre post]

when deployed php project, need enable extensions on azure. please see website folder structure:

enter image description here

i copied dll files folder named ext. and dlls' version should vc9 , non-thread-safe (nts) compatible.

enter image description here

and created extension.ini folder name ini. content following :

extension=d:\home\site\ext\php_igbinary.dll extension=d:\home\site\ext\php_redis.dll zend_extension=d:\home\site\ext\php_xdebug-2.3.3-5.4-vc9-x86_64.dll session.save_handler = redis session.save_path = "tcp://**.redis.cache.windows.net:6379?auth=** 

at last, add "php_ini_scan_dir" configurtation panel on azure portal:

enter image description here

it works me.


Comments