#steps:
- download the library of redis server from here to build further. http://redis.io/download
- Now download the php sdk for redis server called predis from here: https://github.com/nrk/predis
- copy your redis server library files ( from pt. 1) and send them to server using binary file type of transmission (file zila has option for that).
- Now once you have these files in your server lets code something that will build this code and will make executable binaries.
- create a php file (anywhere). and type
exec('cd /* your file path to point to redis library */
make 2<&1',an array to get response);
- this execuation may take some time and in results youll get the stack of commands execuated.using
print_r( /* your response array */);
. - if all goes right you can see the binary that been generated recently, under src.
- now lets try if server is working, to do this remove the command typed in step 5 and replace it with-
exec('cd /* your_file_path_to_point_to_redis_library */
src/redis-cli ping 2<&1',an array to get response);`
The response should be pong
.
##Best of Luck :)