Install Redis-server
$ sudo add-apt-repository ppa:chris-lea/redis-server
$ sudo apt-get update
$ sudo apt-get install redis-server
Install Redis PHP Driver to Lampp
Note that if you install XAMPP using the new .run installer file (versions newer than 1.8.3) then you will get the option during setup to install the development files as well as the core files. Remember to select both.
1 Please download lattest xampp for ubuntu and install with following command:
cd Download ( where xampp download location)
sudo chmod +x xampp-linux-1.8.3-4-installer.run
sudo ./xampp-linux-1.8.3-4-installer.run
2. Run the pecl installer
1
|
sudo /opt/lampp/bin/pecl install redis-2.2.5
Note : If You getting below error : “ ERROR: `phpize' failed”
sudo apt-get install php5-dev
Now again run this command :
sudo /opt/lampp/bin/pecl install redis-2.2.5
Note : again any error same like
the error message you got:
configure: error: sasl.h not found!
should be solveable by:
sudo apt-get install libsasl2-dev
3. Finally add the following to the php.ini file (located in /opt/lampp/etc folder)
4. restart xampp server
That’s it!
|
ubuntu indirmek için tıklayın: ubuntu indir
ReplyDelete