Skip to content

Instantly share code, notes, and snippets.

@amrt0510
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amrt0510/62fd45dd5aa409a255cd to your computer and use it in GitHub Desktop.
Save amrt0510/62fd45dd5aa409a255cd to your computer and use it in GitHub Desktop.
Steps to follow in order to install redis server on your web server.

#steps:

  1. download the library of redis server from here to build further. http://redis.io/download
  2. Now download the php sdk for redis server called predis from here: https://github.com/nrk/predis
  3. 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).
  4. Now once you have these files in your server lets code something that will build this code and will make executable binaries.
  5. 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);
  1. this execuation may take some time and in results youll get the stack of commands execuated.using print_r( /* your response array */); .
  2. if all goes right you can see the binary that been generated recently, under src.
  3. 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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment