Apache error log led me to the Global settings > Locale [Age Display Format] settings, so I changed “Years or Months” to “Years, Months and Days” < save> no diff.
Then I changed [Age in Years for Display Format Change] from “3” to “1” < save> no diff.
This is a fresh install with …/openemr/sites/default data copied off our v4.2.0-4 running Ubuntu14.04 and converted MySQL database. Everything else seems to work fine. Found the error yesterday and I ran Patch2 earlier this morning thinking it might fix this, but it reported I had installed patch 1 ?
I’ve already reported that here: (Openemr 5.0.2 Patch 2 error)
No help found here or on Google, We appreciate all responses and look forward to hearing from you.
First, congrats getting to current version. Sometimes not an easy feat.
This issue befuddles me a bit unless apache has suddenly decided to be a jerk if mod rewrite is not installed or turned on!
You’ll need it anyway so mission one is to check that out…
Getting broken Symlink errors in apache error log;
‘’’[Thu Apr 30 15:30:16.540590 2020] [rewrite:error] [pid 6338] [client 192.168.1.125:57116] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/html/openemr/interface/modules/zend_modules/public/Installer, referer: https://192.168.1.133/openemr/interface/main/tabs/main.php?token_main=RXk9wDgWGwKfyxmj3Py0DWV2VVBNzURoHKxHn5yl
[Thu Apr 30 15:46:20.635487 2020] [rewrite:error] [pid 3052] [client 192.168.1.125:57507] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/html/openemr/interface/modules/zend_modules/public/Installer, referer: https://192.168.1.133/openemr/interface/main/tabs/main.php?token_main=RXk9wDgWGwKfyxmj3Py0DWV2VVBNzURoHKxHn5yl
[Thu Apr 30 15:58:28.502671 2020] [rewrite:error] [pid 19854] [client 192.168.1.125:57800] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/html/openemr/interface/modules/zend_modules/public/Installer, referer: https://192.168.1.133/openemr/interface/main/tabs/main.php?token_main=Kc4JaSveFbMK5wuqUl8QOnlhejbTMgU08OgeBGyG’’’
Oh right!
I’d expect a 404 for permissions. Acts more like though mod is enabled, server doesn’t know about it!
Ensure you have directive RewriteEngine On in your port 443 vhost. Also while there ensure you’ve set up your directories for security. Refer to install doc if need to.
Ok, after editing the virtual host for openemr.
Adding;
Options FollowSymLinks
Options SymLinksIfOwnerMatch
and
RewriteEngine on
I am now getting a 404 error going to “Manage Modules”.
Here are the contents of the /etc/apache2/sites-available/openemr.conf file.
‘’’<VirtualHost *:443>
DocumentRoot /var/www/html
ServerName openemr
<Directory “/var/www/html/openemr”>
Options FollowSymLinks
Options SymLinksIfOwnerMatch
AllowOverride none
allow from all
Require all granted
RewriteEngine on
SSLEngine on
SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
SSLCertificateFile /etc/ssl/certs/Server.crt
SSLCertificateKeyFile /etc/ssl/private/Server.key
SSLCACertificateFile /usr/local/share/ca-certificates/CertificateAuthority.crt
SSLVerifyClient optional
‘’’
apache2 error log is now clean. -no errors. so at least I’m making progress, any other ideas?
I did all recommendations to resolve the issue with module link , but is not working for me.
And also I cant find openemr.conf file in the /etc/apache2/sites-available/openemr.conf file.
File not exist.
Try to edit default-ssl.conf. I believe this is the configuration you are using especially if you don’t have any other websites in your server/computer.
@BenCan Thank you for your recommendation
I actually don’t have openemr.conf file, were I suppose to make configurations.
And in the default-ssl.conf, there no anything about oppen emr configurations. What kind of configurations I need to make in default-ssl.conf to activate module tub.
You have to know where you ‘placed’ the app files. I’m guessing it is installed in the directory /var/www/html.
Consequently this is the DocumentRoot found in the default-ssl.conf file. So by default, you can create a <directory /var/www/htm> #this is where you will place apache directives specifice to this directory AllowOverride FileInfo Options=All </directory> within the <VirtualHost></VirtualHost>.
See Enable the Apache .htaccess File section in this link.
Thank you for your recommendation, and sorry for late replay. I just confused what to do, because I’m not good in coding.
Do I need to add code you provided to default-ssl.conf file
<directory /var/www/htm> #this is where you will place apache directives specifice to this directory AllowOverride FileInfo Options=All </directory> within the <VirtualHost></VirtualHost>.