Stuck at the Pre-Install

I’m trying to install a fresh copy of OpenEMR and I’m getting stuck at the Pre-Install check. It says that file ‘/var/www/html/openemr/sites/default/sqlconf.php’ is not world-writable. However, I’ve verified that it is -rw-rw-rw-.

OpenEMR Version
I’m using OpenEMR version 7.0.1

Firefox and Edge

Operating System
I’m using: Win 10 client and Rocky 8.8 on the server

Did you search the forum for similar questions? Yes

What you described are the file permissions, you need to change the ownership

Both the Owner and Group for that file must be www-data

Not sure how or if you can even change the file ownership using Windows,
I Googled it and came up empty.

If you’re just starting out, consider using Ubuntu/Firefox.
Less expensive and way easier IMHO.

In Ubuntu/Linux you would use;
sudo chown /var/www/html/openemr/sites/default/sqlconf.php www-data:www-data

I wish you the best of luck.

In Rocky Linux Is:
chown -R apache:apache /var/www/html/openemr

This is very confusing to me. I had chown’ed the individual file it was calling out and not writable and it didn’t fix it. Now I’ve chown’ed apache:apache to the entire …/html/openemr directory recursively and verified everything underneath has apache/apache but I’m still getting the error.

Hello Matthew,

I understand that you’re facing a file permission and ownership issue during the installation of OpenEMR. It’s indeed important to ensure that both permissions and ownership are correctly set to avoid such errors.

  1. Regarding the file ownership:
  • In David’s response, he mentioned that the owner and group for the file ‘sqlconf.php’ should be ‘www-data.’ This is a common configuration on many Linux systems.
  • In Luis’s response, for Rocky Linux, he suggests changing the ownership to ‘apache:apache’ for the entire ‘/var/www/html/openemr’ directory recursively.

You mentioned that you’ve tried both of these approaches, and the issue persists. To help you further, we need more information:

  1. Can you provide the logs that contain information about the error you’re encountering during the installation? These logs can often be found in ‘/var/log’ or ‘/var/log/apache2.’ Please share any relevant log entries.
  2. Additionally, please run the following command in your terminal and provide the output here:
<paths being where you have them> 
ls -la /var/www/html/openemr/sites/default/sqlconf.php
ls -la /var/wwwh/html/ 

This will show us the permissions and ownership of the ‘sqlconf.php’ file specifically.

With this additional information, we’ll be able to diagnose the issue more accurately and provide you with a solution.

Thank you.