Project

General

Profile

Actions

Using Redux to serve images on myamiweb » History » Revision 5

« Previous | Revision 5/64 (diff) | Next »
Neil Voss, 08/14/2012 01:48 PM


Using Redux to serve images on myamiweb

Installation

  1. Follow Web_Server_Installation but ignore warning on not using php 5.3
  2. Install redux prerequisites as found in its README file
  3. Install myami-redux branch of myami on the webserver machine. Redux needs write permission at its installation location to write fftw wisdom file.

Configurations:

  1. Assign redux server in myamiweb
    define('SERVER_HOST',"your_hostname")
    
  1. Using Redux cache
    • At myamiweb/config.php
      define('USE_REDUX_CACHE',true)
      
    • Turn it on or off in redux/pipeline.py
    • Input the desired disk_cache_path, disk_cache_size, and mem_cache_size in the next few lines
    • Create the disk_cache_path before running redux if cache will be used

Test Installation

  1. Using Redux to do simple input output:
    cd /your_myami_download/redux/bin
    redux --filename=test.jpg --oformat=PNG > test.png
    

Using redux server with myamiweb
  1. start redux server. (reduxd is in excutable path if installed)
    reduxd
    
  2. test by accessing an image in myamiweb/imageviewer.php

run at boot

sudo cp -v myami/redux/init.d/reduxd /etc/init.d/
sudo service reduxd start

Updated by Neil Voss over 12 years ago · 5 revisions