Actions
Using Redux to serve images on myamiweb » History » Revision 16
« Previous |
Revision 16/64
(diff)
| Next »
Anchi Cheng, 10/19/2012 08:18 PM
Using Redux to serve images on myamiweb¶
Installation¶
- Follow Web_Server_Installation but ignore warning on not using php 5.3
- Install redux prerequisites as found in its README file
- Install myami-redux branch of myami on the webserver machine. Redux needs write permission at its installation location to write fftw wisdom file.
sudo easy_install fs
Configurations:¶
configure redux
> cd YourMyamDownload/redux
> cp redux.cfg.template redux.cfg
You can also copy it to /etc/myami/redux.cfg if you prefer.
Customize redux.cfg. For example, to turn on redux caching,[cache] enable: yes path: /var/cache/myami/redux disksize: 500 memsize: 500
You need to make sure the cache path exists and writable by the user that starts the redux server (reduxd)
- 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
Assign redux server in myamiweb
- At myamiweb/config.php
define('SERVER_HOST',"localhost")
define('SERVER_HOST',"localhost")
Test Installation¶
- Using Redux to do simple input output (simple client with no reduxd server needed):
redux --filename=test.jpg --oformat=PNG > test.png
Make sure the resulting test.png is in fact an image and not an error message. - Run the server: run the following on a command line:
reduxd
leave it running for the following... - Test command line client connecting to the server
redux --server_host=localhost --filename=test.jpg --oformat=PNG > test.png
Note: The input file name is from the perspective of the reduxd server, so be sure to give it an absolute path (unlike the first test, which was not accessing the server)
Using redux server with myamiweb¶
- start reduxd server if not already running from the above test:
reduxd
- click on "[test dataset]" on your main myamiweb home page, or go directly to the URL: myamiweb/viewerxml.php
- test by accessing your own images from Leginon in myamiweb/imageviewer.php
starting reduxd at boot¶
sudo cp -v myami/redux/init.d/reduxd /etc/init.d/ sudo service reduxd start
Updated by Anchi Cheng about 12 years ago · 16 revisions