<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Mark<div><br></div><div>Although the current preferred setup for running OMERO.web is FastCGI protocol, some people prefer continue to use Apache with mod_python.</div><div><br></div><div>In order to upgrade OMERO.web and run it please follow the configuration:</div><div><br></div><div><div>1) go to omero/var/lib/custom_settings.py remove LOGDIR and run the following as 'omero' user:</div><pre><code>$ </code>bin/omero web syncmedia</pre></div><div>this will generate symbolic links in omero/lib/python/omeroweb/media</div><div><br></div><div><div>drwxr-xr-x 7 ola staff 238 25 Nov 08:13 omeroweb</div><div>lrwxr-xr-x 1 ola staff 20 25 Nov 08:48 webgateway -> ../webgateway/media/</div></div><div><br></div><div>2) all previous configuration stored in omero/var/lib/custom_settings.py needs to go to omero preferences, see <a href="http://www.openmicroscopy.org.uk/site/support/omero4/server/install_web#section-8">http://www.openmicroscopy.org.uk/site/support/omero4/server/install_web#section-8</a></div><div><div><br></div><div>- application server should be set up as "development"</div><pre><code>$ bin/omero config set omero.web.application_server "development"</code></pre><pre><code><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; "><pre><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">- log dir can be set up by:</span></pre></span><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; "><pre><code>$ bin/omero config set omero.web. logdir</code> "/home/omero/weblog"</pre></span><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; "><pre><br></pre></span></code></pre></div><div><p><span class="Apple-tab-span" style="white-space:pre"> </span>Configuration options can be set using bin/omero config set:</p><pre><code><span class="Apple-tab-span" style="white-space:pre"> </span>$ bin/omero config set <parameter> "<value>"
</code></pre><p><span class="Apple-tab-span" style="white-space:pre"> </span>NB: The double quotes are not required by OMERO, they are interpreted by your shell/console and will be useful if you have spaces in the value or if you are using Windows. They should not be saved as part of the value (see below).</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>To remove a configuration option (to return to default values where mentioned), simply omit the value:</p><pre><code><span class="Apple-tab-span" style="white-space:pre"> </span>$ bin/omero config set <parameter>
</code></pre><p><span class="Apple-tab-span" style="white-space:pre"> </span>These options will be stored in a file: etc/grid/config.xml which you can read for reference. <strong>DO NOT</strong> edit this file directly.</p><p><span class="Apple-tab-span" style="white-space:pre"> </span>You can also review all your settings by using:</p><pre><code><span class="Apple-tab-span" style="white-space:pre"> </span>$ bin/omero config get
</code></pre><p><span class="Apple-tab-span" style="white-space:pre"> </span>which should return values without quotation marks. </p><p><br></p></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><div>3) Configure mod_python:</div><div>NB: You no longer need '/home/omero/omero_dist/var/lib'</div><div><br></div><div><Location "/"></div><div> SetHandler python-program</div><div> PythonHandler django.core.handlers.modpython</div><div> SetEnv DJANGO_SETTINGS_MODULE omeroweb.settings</div><div> PythonDebug On</div><div> PythonPath "['/home/omero/omero_dist/lib/python', '/home/omero/omero_dist/lib/python/omeroweb'] + sys.path"</div><div><br></div><div></Location></div><div><pre><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">I hope that will be helpful.</span></pre><pre><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">If you have any more problems please let me know.</span></pre></div></span></font></span></font></div><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><div>Thanks</div><div>Ola</div><div><span class="Apple-style-span" style="font-size: medium;"><br></span></div></div></div></div></div><br></div></body></html>