Using Redux to serve images on myamiweb » History » Version 2
Anchi Cheng, 07/10/2012 11:27 AM
1 | 1 | Anchi Cheng | h1. Using Redux to serve images on myamiweb |
---|---|---|---|
2 | |||
3 | h2. Installation |
||
4 | |||
5 | # Follow [[Web_Server_Installation]] but ignore warning on not using php 5.3 |
||
6 | # Install redux prerequisites as found in its README file |
||
7 | # Install myami-redux branch of myami on the webserver machine. Redux needs write permission at its installation location to write wisdom file. |
||
8 | 2 | Anchi Cheng | |
9 | h2. Configurations: |
||
10 | |||
11 | #Assign redux server in myamiweb |
||
12 | <pre> |
||
13 | define('SERVER_HOST',"your_hostname") |
||
14 | </pre> |
||
15 | |||
16 | #Using Redux cache |
||
17 | **At myamiweb/config.php |
||
18 | <pre> |
||
19 | define('USE_REDUX_CACHE',true) |
||
20 | </pre> |
||
21 | **Turn it on or off in redux/pipeline.py |
||
22 | **Input the desired disk_cache_path, disk_cache_size, and mem_cache_size in the next few lines |
||
23 | **Create the disk_cache_path before running redux if cache will be used |
||
24 | |||
25 | h2. Test Installation |
||
26 | |||
27 | # Using Redux to do simple input output: |
||
28 | <pre> |
||
29 | cd /your_myami_download/redux/bin |
||
30 | redux --filename=test.jpg --oformat=PNG > test.png |
||
31 | </pre> |
||
32 | |||
33 | h2. Using redux server with myamiweb |
||
34 | # start redux server. (reduxd is in excutable path if installed) |
||
35 | <pre> |
||
36 | reduxd |
||
37 | </pre> |
||
38 | # test by accessing an image in myamiweb/imageviewer.php |