I installed Openemr ubuntu 7.0.0 with patch 2, PHP 8.1 in VBox with port 80 open hosted in windows 10, I can access the patient portal from a browser but when going to portal dashboard from miscellaneous it gives me error:
Not Found
The requested URL was not found on this server.
Apache/2.4.52 (Ubuntu) Server at 192.168.1.4 Port 80
This is because of misconfigured webserver.
You have to enable mod rewrite. If that does not work then add something like this to the webserver config file.
<Directory "/var/www/html/openemr">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
One of those two are the issue if you are using an apache server.
After it was corrected, I tested patient portal, sent message with password to virtual patient, then from the portal I edited the name and phone number, saved it gave a flashy pink error could not capture, went back to openemr, I did not see the edited info…?
in thee right upper corner there is the portal drop down menu with the error:
Oh Snap!
Unauthorized
You may want to try returning to the the previous page and verifying that all fields have been filled out correctly.
If you continue to experience this error please contact support.
Sorry to say this but repeating the process gave same error, this time a2enmod rewrite did not do it, I am puzzled, nothing have changed why it worked the first time now it is not?
Go back over your config and ensure the Directory permissions are in place still.
Also ensure you are using the correct directory path to your openemr directory i.e. for Sherwin it might be <Directory "/var/www/html/openemr"> but yours may be different.
I’m not sure if my .htaccess turns on rewrite but you should have
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
Options FollowSymLinks ( AllowOverride All, require all granted)
/usr/share ( AllowOverride All, require all granted)
Directory /var/www/html/openemr Options Indexes FollowSymLinks, ( AllowOverride All, require all granted)
I do not see in my apache2.conf
RewriteEngine On
I see though
IncludeOptional sites-enabled/.conf/
IncludeOptional conf-enabled/.conf/
also under AccessFileName .htaccess I see
<FilesMatch “^.ht”>
Require all denied
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
<Directory "/var/www/html/openemr">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
Not sure why you’d want AllowOverride All. To me that is a security problem unless you have a module or custom code that you need to do overrides in .htaccess.
Also you want to be using your vhost config and ssl like httpd-ssl.conf but moreover look at httpd.conf for LoadModule rewrite_module modules/mod_rewrite.so and uncomment if it is.
I did what you suggested and changed in apache2.conf to
<Directory “/var/www/html/openemr”>
Options -Indexes
AllowOverride None
Require all granted