I tested on Ubuntu 12.10 64bit server edition, it should work well in other versions
1) Install Redis server
Earlier today I was looking for an alternative repository for Redis and luckily I ran into Dotdeb. They have a bunch of nice packages, always up to date with the very latest version.
In order to get in on this goodness you must first add the Dotdeb repositories to your APT sources. Create a new list file in /etc/apt/sources.list.d/ and fill it with the following content.
Create new file:
Code:
$ vi /etc/apt/sources.list.d/dotdeb.org.list
Then add these lines to this file
Code:
# /etc/apt/sources.list.d/dotdeb.org.list
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
Then you need to authenticate these repositories using their public key.
Code:
wget -q -O - http://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -
And finally, update your APT cache and install Redis.
Code:
$ sudo aptitude update
$ sudo aptitude install redis-server
You got Redis server working with these credentials:
Code:
Host: 127.0.0.1
Port: 6379
2) Preparation for install PHP Redis extension
Code:
$ sudo apt-get install php5-dev
php5-dev provides the dev library as well as the phpize command which is required for the compiling step
3) Get phpredis source code, should be pretty easy by running
Install git
Code:
$ sudo apt-get install git
Get phpredis source
Code:
$ git clone git://github.com/nicolasff/phpredis.git
4) Compile and install
Code:
cd phpredis
phpize
./configure
make
sudo -s make install
5) Enable the phpredis extension
Code:
sudo -s
echo "extension=redis.so">/etc/php5/conf.d/redis.ini
exit
6) Restart server
To make sure everything is working well, you have to restart server/vps.
7) Write a simple php script to test (running on cli would be fine if php5-cli is installed)
PHP Code:
<?php
$redis=new Redis() or die("Can not load redis.");
$redis->connect('127.0.0.1');
$redis->set('test_key', 1);
And now run this script, if it display blank page then you get success or just tell me
View more threads in the same category:
- Falschgeld kaufen in Berlin, die Hauptstadt Deutschlands WhatsApp… +48 52 553 13 32 W
- WO KANN ICH FALSCHGELD KAUFEN WhatsApp&.. +48 52 553 13 32) Falschgeld kaufen in Ess
- Buy counterfeit money online(http://www.legitglobalpapers.com) passport, residence pe
- kaufen Swiss Franc (CHF) WhatsApp…..+4915212508422 Kaufen Sie Fälschungen (IN, BR, MX
- Buy real registered passports(https://legitglobalpapers.com)drivers license, id card,
- WO KANN ICH FALSCHES GELD KAUFEN WhatsApp&...+4915212508422. Falschgeld kaufen in ess
- kaufen Swiss Franc (CHF) WhatsApp…..+4915212508422 Kaufen Sie Fälschungen (IN, BR, MX
- WO KANN ICH FALSCHES GELD KAUFEN WhatsApp&...+4915212508422. Falschgeld kaufen in ess
- Buy Nembutal, ketamine, Oxycodone, Amphetamine, ( WhatsApp: +4915215875577 )
- WO KANN ICH FALSCHES GELD KAUFEN WhatsApp&...+4915212508422. Falschgeld kaufen in ess
Bookmarks