<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div>Hi Tjelvar<br>
<br>
</div>
Thanks for your bug report. We discovered this ourselves and the fix should be included in the next release:<br>
<a href="https://github.com/openmicroscopy/openmicroscopy/pull/4328">https://github.com/openmicroscopy/openmicroscopy/pull/4328</a><br>
<div><br>
</div>
<div>It looks like you were following the 5.1 docs, in 5.2 the web installation instructions were rewritten:<br>
<a href="https://www.openmicroscopy.org/site/support/omero5.2/sysadmins/unix/install-web/install-apache.html">https://www.openmicroscopy.org/site/support/omero5.2/sysadmins/unix/install-web/install-apache.html</a><br>
though they'll need modification again to account for the difference between Apache 2.2 and 2.4<br>
</div>
<div><br>
</div>
<div>Best wishes<br>
<br>
</div>
<div>Simon<br>
</div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 24 November 2015 at 16:14, Tjelvar Olsson (JIC) <span dir="ltr">
<<a href="mailto:Tjelvar.Olsson@jic.ac.uk" target="_blank">Tjelvar.Olsson@jic.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">Hi,<br>
<br>
Trying to configure mod_wsgi for OMERO 5.2 turned out to be a bit painful. I ran into three issues (on<br>
CentOS 7 using Apache/2.4.6).<br>
<br>
1. The command to generate the Apache configuration file in the documentation did not work<br>
<br>
<a href="https://www.openmicroscopy.org/site/support/omero5.1/sysadmins/unix/install-web/install-wsgi.html" target="_blank">https://www.openmicroscopy.org/site/support/omero5.1/sysadmins/unix/install-web/install-wsgi.html</a><br>
<br>
<pre>$ bin/omero web config apache-wsgi<br><br>Should be:<br><br>$ bin/omero web config apache<br><br><br>2. The generated configuration FollowSymLinks option needed to be prefixed by a "+"<br></pre>
# systemctl start httpd.service<br>
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.<br>
<br>
# systemctl status httpd.service<br>
httpd.service - The Apache HTTP Server<br>
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)<br>
Active: failed (Result: exit-code) since Tue 2015-11-24 03:51:28 EST; 16s ago<br>
Process: 13634 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)<br>
Process: 13633 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)<br>
Main PID: 13633 (code=exited, status=1/FAILURE)<br>
CGroup: /system.slice/httpd.service<br>
<br>
Nov 24 03:51:28 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...<br>
Nov 24 03:51:28 localhost.localdomain httpd[13633]: AH00112: Warning: DocumentRoot [/home/omero/OMERO.server/lib/python/omeroweb] does not exist<br>
Nov 24 03:51:28 localhost.localdomain httpd[13633]: AH00526: Syntax error on line 72 of /etc/httpd/conf.d/omero.conf:<br>
Nov 24 03:51:28 localhost.localdomain httpd[13633]: Either all Options must start with + or -, or no Option may.<br>
Nov 24 03:51:28 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE<br>
Nov 24 03:51:28 localhost.localdomain kill[13634]: kill: cannot find process ""<br>
Nov 24 03:51:28 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1<br>
Nov 24 03:51:28 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.<br>
Nov 24 03:51:28 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.<br>
<br>
The problem above was overcome by changing:<br>
<br>
<pre> Options -Indexes FollowSymLinks<br><br>To:<br><br> Options -Indexes +FollowSymLinks<br><br><br>3. [authz_core:error] client denied by server configuration<br><br>Basically, the pages were 403-ing and the error above was reproted in:<br>/var/log/httpd/error_log<br><br>I found a fix for this in:<br><a href="https://mikegriffin.ie/blog/20140130-authz-core-error-client-denied-by-server-configuration/" target="_blank">https://mikegriffin.ie/blog/20140130-authz-core-error-client-denied-by-server-configuration/</a><br><br>Basically I needed to replace:<br><br><code> <span>Order allow, deny</span>
<span>Allow from all<br><br>With:<br></span></code></pre>
<pre><code> <span>Require all granted</span></code></pre>
<br>
Perhaps the script that generates the Apache template can be updated to incorporate these changes?<br>
I have included my working omero.conf file below.<br>
<br>
Cheers,<br>
<br>
Tjelvar<br>
<br>
<br>
<VirtualHost _default_:80><br>
<br>
DocumentRoot /home/omero/OMERO.server/lib/python/omeroweb<br>
<br>
WSGIDaemonProcess omeroweb processes=5 threads=1 display-name=%{GROUP} user=omero python-path=/usr/lib64/python2.7/site-packages/Ice:/home/omero/OMERO.server/lib/python:/home/omero/OMERO.server/lib/fallback:/home/omero/OMERO.server/lib/python/omeroweb<br>
<br>
WSGIProcessGroup omeroweb<br>
<br>
WSGIScriptAlias / /home/omero/OMERO.server/lib/python/omeroweb/wsgi.py<br>
<br>
<Directory "/home/omero/OMERO.server/lib/python/omeroweb"><br>
Require all granted<br>
</Directory><br>
<br>
Alias /static /home/omero/OMERO.server/lib/python/omeroweb/static<br>
<Directory "/home/omero/OMERO.server/lib/python/omeroweb/static"><br>
Options -Indexes +FollowSymLinks<br>
Require all granted<br>
</Directory><br>
<br>
</VirtualHost><br>
<br>
# see <a href="https://code.google.com/p/modwsgi/wiki/ConfigurationIssues" target="_blank">
https://code.google.com/p/modwsgi/wiki/ConfigurationIssues</a><br>
WSGISocketPrefix run/wsgi<br>
# WSGISocketPrefix /var/run/wsgi<br>
<br>
</div>
<br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</div>
<br>
_______________________________________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" rel="noreferrer" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>