# 404 Error trying to open Manage Modules and Portla Dashboard

**URL:** <https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895>\
**Category:** Support\
**Created:** [July 18, 2021, 2:15am UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895 "2021-07-18T02:15:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaredBusch](https://community.open-emr.org/user_avatar/community.open-emr.org/jaredbusch/32/16223_2.png) [@JaredBusch](https://community.open-emr.org/u/JaredBusch)\
**Post date:** [July 18, 2021, 2:15am UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895/1 "2021-07-18T02:15:44Z")

</div>

**Situation**  
I changed `/etc/httpd/conf/httpd.conf` as recommend in this thread.

> [@I'm not able to open "Manage Modules" and "Portal Dashboard" on my OpenEMR Ubuntu instance](https://community.open-emr.org/t/im-not-able-to-open-manage-modules-and-portal-dashboard-on-my-openemr-ubuntu-instance/15401):
>
> Situation Hi everyone I have a little problem. I’m trying to open the Manage Modules and Portal Dashboard on my openemr installation on Ubuntu but it is not working. Instead I’m getting this error shown on the screenshot below. What could be my problem? Kindly assist OpenEMR Version I’m using OpenEMR version 5.0.1 Browser: I’m using Mozilla the latest version Operating System I’m using Ubuntu 20.04 Logs Did you check the logs? Was there anything …

Modules mentioned in that thread are loaded.

```auto
[jbusch@openemr ~]$ sudo httpd -M | grep "headers\|rewrite"
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::5400:3ff:fe66:a528. Set the 'ServerName' directive globally to suppress this message
 headers_module (shared)
 rewrite_module (shared)

```

**OpenEMR Version**  
OpenEMR 6.0.0

```auto
[jbusch@openemr ~]$ cat /etc/oracle-release
Oracle Linux Server release 8.4
[jbusch@openemr ~]$ php -v
PHP 7.4.6 (cli) (built: May 12 2020 08:09:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

```

**Browser** :  
Firefox (on Fedora Linux)

**Logs**

```auto
[jbusch@openemr ~]$ sudo tail -f /var/log/httpd/ssl_access_log
172.70.126.28 - - [17/Jul/2021:21:03:49 -0500] "POST /openemr/interface/main/dated_reminders/dated_reminders.php HTTP/1.1" 200 91
172.70.126.28 - - [17/Jul/2021:21:03:49 -0500] "GET /openemr/Documentation/help_files/message_center_help.php HTTP/1.1" 200 21739
172.70.126.28 - - [17/Jul/2021:21:03:51 -0500] "GET /openemr/interface/modules/zend_modules/public/Installer HTTP/1.1" 404 196
172.70.126.28 - - [17/Jul/2021:21:03:59 -0500] "GET /openemr/portal/patient/provider HTTP/1.1" 404 196

```

Edit: PHP Modules

```auto
[jbusch@openemr ~]$ php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]

```

---

<div class="post-metadata">

**Author:** ![JaredBusch](https://community.open-emr.org/user_avatar/community.open-emr.org/jaredbusch/32/16223_2.png) [@JaredBusch](https://community.open-emr.org/u/JaredBusch)\
**Post date:** [July 18, 2021, 3:32pm UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895/2 "2021-07-18T15:32:17Z")

</div>

Updated to 6.0.0 Patch 2. There was no change in the issue.

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [July 18, 2021, 5:56pm UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895/3 "2021-07-18T17:56:48Z")

</div>

hi @JaredBusch, can you try setting up a [virtual host](https://docs.oracle.com/en/operating-systems/oracle-linux/8/obe-apache-install/#create-virtual-hosts) for openemr? Here’s an [apache2 6.0.0 example](https://github.com/openemr/openemr-devops/blob/master/docker/openemr/6.0.0/openemr.conf) from the docker. Then follow setup instructions which should match the docker example:

 ![Screenshot from 2021-07-18 13-49-40](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/0/b/0b78a5a3ca3868d6e6de742d41dd1899aad9d55c.png)

---

<div class="post-metadata">

**Author:** ![JaredBusch](https://community.open-emr.org/user_avatar/community.open-emr.org/jaredbusch/32/16223_2.png) [@JaredBusch](https://community.open-emr.org/u/JaredBusch)\
**Post date:** [July 18, 2021, 6:52pm UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895/4 "2021-07-18T18:52:40Z")

</div>

I had that originally @stephenwaite. I believe it was in the original installation guide?

I removed it (renamed) when I made changes in the prior post. I can put it back.

This is how I installed. I wrote this guide for future reference as I did the install.

> **[Installing OpenEMR 6 on Oracle Linux 8](https://mangolassi.it/topic/23157/installing-openemr-6-on-oracle-linux-8)**
>
> So, I was tasked to install OpenEMR (https://www.open-emr.org/) on Oracle Linux 8. First things first, when installing Oracle Linux 8, it has a number of differences from CentOS 8 and RHEL 8. Nothing major, but different. I might post about it later...

I didn’t document the where I got the vhost file from. So I need to look back at command history to see what I did. But it was there.

here is the file that was not working.

```auto
<VirtualHost *:80>
   DocumentRoot /var/www/html/openemr/
   ServerName emr.domain.com
   DirectoryIndex index.htm index.html index.php
   ServerAlias example.com
   ErrorDocument 404 /story.php
   ErrorLog /var/log/httpd/emd.domain.com_error_log
   CustomLog /var/log/httpd/emr.domain.com_access_log combined

  <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>
</VirtualHost>

```

---

<div class="post-metadata">

**Author:** ![JaredBusch](https://community.open-emr.org/user_avatar/community.open-emr.org/jaredbusch/32/16223_2.png) [@JaredBusch](https://community.open-emr.org/u/JaredBusch)\
**Post date:** [July 18, 2021, 8:40pm UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895/5 "2021-07-18T20:40:08Z")

</div>

> [@stephenwaite](#):
>
> Here’s an [apache2 6.0.0 example](https://github.com/openemr/openemr-devops/blob/master/docker/openemr/6.0.0/openemr.conf) from the docker

So I reverted the change to httpd.conf and created a new vhost file based on that link in the post, which is more detailed than whatever I originally found following the guide, and now it is all working.  
Thanks @stephenwaite  
Here is a vaild `conf` file for someone running in the RHEL ecosystem.

```auto
[jbusch@openemr ~]# cat /etc/httpd/conf.d/openemr.conf
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule allowmethods_module modules/mod_allowmethods.so

## Security Options
# Strong HTTP Protocol
HTTPProtocolOptions Strict
Protocols http/1.1
# Don't Reveal Server
ServerSignature off
ServerTokens Prod
Header unset Server
# No ETag
FileETag None
Header unset ETag
# Set HSTS and X-XSS protection
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header set X-XSS-Protection "1; mode=block"
# Narrow document root
DocumentRoot /var/www/html/openemr
ErrorLog /var/log/httpd/emr.domain.com_error_log
CustomLog /var/log/httpd/emr.domain.com_access_log combined

<Directory /var/www/html/openemr>
    # Only allow these HTTP Methods
    AllowMethods GET POST PUT DELETE HEAD OPTIONS
    # No indexes anywhere
    Options -Indexes
    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>

#######################################
### Uncomment the following 3 lines ###
### with #'s below to enable HTTPS ###
### redirection & require HTTPS only ##
#######################################
<VirtualHost *:80>
    #RewriteEngine On
    #RewriteCond %{HTTPS} off
    #RewriteRule (.*) https://%{HTTP_HOST}/$1 [R,L]
</VirtualHost>

<VirtualHost _default_:443>
    # SSL Engine Switch:
    # Enable/Disable SSL for this virtual host.
    SSLEngine on
    SSLHonorCipherOrder on
    # Used following tool to produce below ciphers: https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=apache-2.4.39&openssl=1.1.1&hsts=yes&profile=modern
    SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
    SSLProtocol -ALL +TLSv1.2
    SSLCertificateFile /etc/pki/tls/certs/localhost.crt
    SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
</VirtualHost>

```

---

<div class="post-metadata">

**Author:** ![growlingflea](https://community.open-emr.org/user_avatar/community.open-emr.org/growlingflea/32/15498_2.png) [@growlingflea](https://community.open-emr.org/u/growlingflea)\
**Post date:** [October 28, 2022, 11:05pm UTC](https://community.open-emr.org/t/404-error-trying-to-open-manage-modules-and-portla-dashboard/16895/6 "2022-10-28T23:05:57Z")

</div>

After adding the

```auto
  <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>
</VirtualHost>

```

to the sites-available/openemr.conf file, this resolved the issue.
