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