tmccormi wrote on Monday, January 07, 2013:
I’m sharing this error situation here in case someone else runs into it: Basically it’s more important in Ubuntu 12.04 that the openemr installation be owned by the same user:group as apache. While this is normal best practice, it’s easy to miss and it still works fine in older installs. Not sure why it has cropped up now, but it may be an Apache release/update issue.
Running setup works and normal and reporta that all permissions are GOOD.
Then setup.php Stops after displaying
**Step 4
Installing and Configuring Access Controls (php-GACL)…
**
Log shows:
PHP Fatal error: require(): Failed opening required '/var/www/openemr/library/classes/../../gacl/setup.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/openemr/library/classes/Installer.class.php on line 477, referer: http://localhost/openemr/setup.php?site=default
The file in question is there and the permissions are the “default” result of using sudo to copy the openemr files in place, in my case ‘root:root’.
Changing the ownership of all dirs/files in the openemr tree BEFORE running setup to www-data:www-data fixes the issue.
SIDE note. When it fails OpenEMR has already set the sqlconf.php indicated to =1 (configured). This is a bug/error, the setup should not update this file until after the very final setup when it announces Success. To recover you have to edit the file back to =0 and delete the database that was created manually.
-Tony