How to fix this pl, the module link shows this page
Not Found
The requested URL was not found on this server.
Apache/2.4.58 (Ubuntu) Server at localhost Port 80
How to fix this pl, the module link shows this page
The requested URL was not found on this server.
Apache/2.4.58 (Ubuntu) Server at localhost Port 80
The 2 most common misconfigurations that cause this are:
Yup Thanks …
Asked chatgpt and solved it
If you’re using .htaccess
files for rewrite rules, ensure Apache is configured to allow overrides. Edit your virtual host configuration file (e.g., /etc/apache2/sites-enabled/000-default.conf
):
bash
Copy code
sudo nano /etc/apache2/sites-enabled/000-default.conf
Find the <Directory>
block for your website’s root (e.g., /var/www/html
) and ensure it includes AllowOverride All
:
apache
Copy code
<Directory /var/www/html>
AllowOverride All
</Directory>
Save and exit the file, then restart Apache:
bash
Copy code
sudo systemctl restart apache2
Ah, you may not want to set that AllowOverride All flag on your entire web root, remember that there are subdirectories in OpenEMR that can/will contain PHI.
Thanks for the tip… will do that only for /openemr
This is from the installation page:
<Directory "/var/www/openemr">
AllowOverride FileInfo
Require all granted
</Directory>
<Directory "/var/www/openemr/sites">
AllowOverride None
</Directory>
<Directory "/var/www/openemr/sites/*/documents">
Require all denied
</Directory>
Thanks copied and saved …