Modules Tab/Zend Permission Error

Hi Guys,

I recently migrated a client of mine from version 3.1 on a VERY old server, to a cloud-solution running Ubuntu with the latest version OpenEMR…

Everything works, except the modules section, first I got a Forbidden error, and since ‘upgrading’ the apache config file, that error is now gone, but now I see something else:

My (messy) apache config:
<VirtualHost *:443>
DocumentRoot /var/www/openemr
ServerName SERVERADDRESS
<Directory “/var/www/openemr”>
allow from all
Options +SymLinksIfOwnerMatch added this, not sure if it helps.
Options None
Require all granted

SSLEngine on
SSLCACertificateFile /etc/webmin/letsencrypt-ca.pem
SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
SSLHonorCipherOrder on
Header always set Strict-Transport-Security “max-age=63072000; includeSubdomains;”
SSLCertificateFile /LOCATION/fullchain.pem
SSLCertificateKeyFile /LOCATION/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

<Directory “/var/www/openemr”>
AllowOverride None

<Directory “/var/www/openemr/interface/modules/zend_modules/public”>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.$ - [NC,L]
RewriteRule ^.
$ /openemr/interface/modules/zend_modules/public/index.php [NC,L]

<Directory “/var/www/openemr/portal/patient”>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.) /openemr/portal/patient/index.php?_REWRITE_COMMAND=$1 [QSA,L]

<Directory "/var/www/openemr/sites/
/documents">
Require all denied

<Directory “/var/www/openemr/sites//edi">
Require all denied

<Directory "/var/www/openemr/sites/
/era”>
Require all denied

Error Log:
[Mon May 07 10:08:05.742500 2018] [:error] [pid 154190] [client 41.160.xxx.xxx:10346] PHP Notice: Undefined index: recipient in /var/www/openemr/interface/modules/zend_modules/public/index.php on line 40, referer: https://serveraddress.com/interface/main/tabs/main.php
[Mon May 07 10:08:05.799785 2018] [:error] [pid 154190] [client 41.160.xxx.xxx:10346] PHP Notice: Undefined variable: adapters in /var/www/openemr/interface/modules/zend_modules/config/autoload/global.php on line 82, referer: https://serveraddress.com/interface/main/tabs/main.php

Hi @kwagga ,

Highly likely that Zend is not configured. See here:
https://www.open-emr.org/wiki/index.php/Zend#Apache

-brady

Hi Brady,

I think I have it configured… as per all the available guides… any other way for me to check?

PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018 13:51:52) ( NTS )
Copyright © 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright © 1998-2017 Zend Technologies
with Zend OPcache v7.0.27-0+deb9u1, Copyright © 1999-2017, by Zend Technologies

<Directory “/var/www/openemr/interface/modules/zend_modules/public”>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.$ - [NC,L]
RewriteRule ^.
$ /openemr/interface/modules/zend_modules/public/index.php [NC,L]

@brady.miller Anything else I can check?

You missing closing tag in the apache configuration file. no? ()
Except this I didn’t find problems in the configuration file…

What is the url of the ‘manage modules’ frame?

@Amiel Please see image.

@kwagga Please find the frame’s url with right click…
right click on the frame->view frame source (in Chrome)

@Amiel

Manage Modules

A 404 error occurred

Page not found.

<p>The requested URL could not be matched by routing.</p>





    <h3>No Exception available</h3>


    </div> <!-- /container -->
        </body>
Manage Modules

A 404 error occurred

Page not found.

<p>The requested URL could not be matched by routing.</p>





    <h3>No Exception available</h3>


    </div> <!-- /container -->
        </body>