Once again misled by those tutorials on the web decided to write one yourself. I've been misled by the strange tutorials a few times, and I've been studying other things before. The egg hurts.
Installing Redis
You can use the Apt-get command directly
sudo apt-get install Redis-server
The installation will ask you a thing, enter Y on the line.
The Redis service will start automatically after installation, and you can see whether the process has started by following the command below.
Ps-aux|grep Redis
Then check the status of the Redis service to see if it is runing.
Redis-server is running
Installing PHP Extensions
With Apt-get, you can install the
sudo apt-get install Php5-redis
Then reboot the Apache.
Service Apache Restart
Use Redis storage in CI session
In CI 3.0 (2.0 is not supported with Redis storage session) in the application\config\config.php two configuration changed to the following
$config [' sess_driver '] = ' redis '; $config [' sess_save_path '] = ' tcp://127.0.0.1:6379 ';
How to install Redis in Ubuntu and PHP install Redis extensions, CI framework sess using Redis