Project

General

Profile

Using Redux to serve images on myamiweb » History » Version 4

Anchi Cheng, 07/10/2012 11:30 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 4 Anchi Cheng
# Install myami-redux branch of myami on the webserver machine.  Redux needs write permission at its installation location to write fftw wisdom file.
8 2 Anchi Cheng
9
h2. Configurations:
10
11 3 Anchi Cheng
# Assign redux server in myamiweb
12 2 Anchi Cheng
<pre>
13
define('SERVER_HOST',"your_hostname")
14
</pre>
15
16 3 Anchi Cheng
# Using Redux cache
17
** At myamiweb/config.php
18 2 Anchi Cheng
<pre>
19
define('USE_REDUX_CACHE',true)
20
</pre>
21 3 Anchi Cheng
** 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 2 Anchi Cheng
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