I'm not able to open "Manage Modules" and "Portal Dashboard" on my OpenEMR Ubuntu instance

hi @Mohammad , here are some tips for markdown syntax.

Thank you , I see why now it did not show.

@Mohammad Thank you for the support.
My conf is as follows…


<Directory “/var/www/html/openemr”>
AllowOverride FileInfo
#AllowOverride All
Require all granted

<Directory “/var/www/html/openemr/sites”>
#AllowOverride None
AllowOverride None

<Directory “/var/www/html/openemr/sites/*/documents”>
Require all denied

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule headers_module modules/mod_headers.so
#Options FollowSymLinks
#<ifModule !mod_access_compat.c>
#Options FollowSymLinks
#AllowOverride All
#Require all granted

#Options FollowSymLinks
#AllowOverride All
#Require all granted


but still unable to browse the module page.
Request your suggestions / help here.

Did you close the Directory after each line? </Directory>
Did you restart apache2 service after making the changes?

Yes I did. but in vain.

I would think you did :
sudo a2enmod rewrite
I attached a screen shot of my apache2.conf in the path
/etc/apache2/apache2.conf
It worked for me on ubuntu.

Hi Mohammad,
Appended the code both in openemr.conf and apache.conf, restarted the server… but no use.
Still the same error.

Just to see if it makes a difference , I went through this before. can you change only this:

<Directory "/var/www/html/openemr">
      Options -Indexes
      AllowOverride All
      Require all granted
   </Directory>

With knowing that we should not AllowOverride All but just see if you can link to module.

Done as advised.
Am still getting error as follows…
“The requested URL was not found on this server.”

If you activate the patient portal from global can you get to portal dashboard or you get the same server error?

Yes I enabled patient portal in global settings.
Am getting the same error for both patient portal and module admin.

What is PHP version in your installation?

That what I was trying to see if it is an older php where it could be a zend issue but obviously it is not.
Wow…My knowledge and prior experience with the same issue stops here…I wish I know more to help.
See if others more seasoned can chime in if no answer may be fresh install.

Would really appreciate your efforts Mohammad.
Members of this community!!
Can you please throw some light here?

One final shot at it
do you have in /etc/apache2/sites-available/openemr.conf

<Directory "/var/www/html/openemr">
      AllowOverride FileInfo
      Require all granted
  </Directory>
  <Directory "/var/www/html/openemr/sites">
      AllowOverride None
  </Directory>
  <Directory "/var/www/html/openemr/sites/*/documents">
      Require all denied
  </Directory>

?

Here goes my openemr.conf

I do not have those lines in my apache2.conf nor in openemr.conf

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule headers_module modules/mod_headers.so

can you hashtag them to comment them in both , restart apache2 and see?

Done.
But no use. still getting the same error for both.

What version of apache are you using. Your error is an apache hosting error and not an OpenEMR specific one as none of the .htaccess files are working based on what you are posting. You need to check your main apache config file (typically httpd.conf) and look to see if your configuration has disabled all overrides at the root web hosting location.

If your root httpd.conf file has an AllowOverride None in it then any subsequent conf files cannot override that setting.

Also of note, what version of OpenEMR are you running? PHP 7.4 is no longer supported on OpenEMR – that’s not your core issue, but it makes me think your machine is also running older versions of software such as an older version of apache that uses different syntax for the config overrides.