Situation
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
Browser:
Firefox and Edge
Operating System
I’m using: Win 10 client and Rocky 8.8 on the server
Search
Did you search the forum for similar questions? Yes
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.
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.
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:
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.
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.