gutiersa
(Sandra Gutierrez)
May 27, 2018, 7:53pm
1
I have new install of openemr 5.0.1 (2). My default site is running so far. When I try to set up a new site I get a blank screen.
I’m using: Freebsd 11.1, PHP72, Mysql57, Nginx
There is nothing in the logs, and I made sure my base folder belongs to www:www
and sites/demo/sqlconf.php is writable. (I manually cloned the sites/default file and named it demo hoping it would help my problem)
What am I missing?
Sandra
gutiersa
(Sandra Gutierrez)
May 28, 2018, 6:34am
2
Does it have anything to do with register_globals in php? It was removed in 5.4. ???
Would this help:
https://pageconfig.com/post/register_globals-is-back-php-implementation
?
Thanks
gutiersa
(Sandra Gutierrez)
May 28, 2018, 2:38pm
4
Yes, but when I click on “Add new site” button, I get a blank screen.
Thanks
hi @gutiersa , should be an error in your log regarding this issue then.
1 Like
gutiersa
(Sandra Gutierrez)
May 28, 2018, 4:34pm
6
Yes, I had permission errors, and was missing some PHP modules. I am working on it. I’ll post again if I figure it out.
Thanks so much
Sandra
gutiersa
(Sandra Gutierrez)
May 28, 2018, 4:49pm
7
these are the errors I am getting in the log:
2018/05/28 12:36:56 [error] 10634#101601: *37 directory index of “/path/to/public_html/” is forbidden, client: xx.xx.xx.xx, server: domain.name, request: “GET /?site=default HTTP/1.1”, host: “domain.name”
2018/05/28 12:36:56 [error] 10634#101601: *37 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: basePath in /path/to/public_html/library/core/src/Header.php on line 158” while reading response header from upstream, client: xx,xx,xx,xx server: domain.name, request: “GET /interface/login/login.php?site=default HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “domain.name”, referrer: “https://domain.name/?site=default ”
2018/05/28 12:37:28 [error] 10634#101601: *37 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: basePath in /path/to/public_html/library/core/src/Header.php on line 158” while reading response header from upstream, client: xx.xx.xx.xx, server: domain.name, request: “GET /interface/login/login.php?site=default HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “domain.name”
2018/05/28 12:37:29 [error] 10634#101601: *48 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: authUser in /path/to/public_html/library/auth.inc on line 84
PHP message: PHP Notice: Undefined index: authProvider in /path/to/public_html/library/auth.inc on line 84” while reading response header from upstream, client: xx.xx.xx.xx, server: domain.name, request: “GET /interface/themes/themeBuilder.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: “domain.name”, referrer: “https://domain.name/interface/login/login.php?site=default ”
Sandra
thanks @gutiersa , it looks like there is still a permission error represented by the first message you posted above
prob best to start over and use the multisite instructions to create a new site ( you can also clone with the multisite module)
1 Like
gutiersa
(Sandra Gutierrez)
May 28, 2018, 5:40pm
9
Yes, I might start with a fresh tar ball.
I am using the multisite module. Isn’t admin.php??
So far, in the default site, I am able to enter users and patients.
I am also reading up on the privileged user in the Documentation. It has been a long time since I installed an openemr instance, and the first time I am trying to use nginx.
Thanks so much
Sandra
Hi @gutiersa ,
When you sort out your permissions, note you need to do a couple things in the setup.php script to build your multisites (and note you should revert those changes right after you are done or else your site will be vulnerable to critical security vulnerabilities; actually, its even better to delete the setup.php script completely when you are done building your multisites):
// Warning. If you set $allow_multisite_setup to true, this is a potential security vulnerability.
// Recommend setting it back to false (or removing this setup.php script entirely) after you
// are done with the multisite procedure.
$allow_multisite_setup = false;
// Warning. If you set $allow_cloning_setup to true, this is a potential security vulnerability.
// Recommend setting it back to false (or removing this setup.php script entirely) after you
// are done with the cloning setup procedure.
$allow_cloning_setup = false;
-brady
1 Like
@brady.miller please what is the function of multisite?
gutiersa
(Sandra Gutierrez)
May 29, 2018, 5:09pm
12
I want to set up an openemr instance for multiple, unrelated medicat practices. That way, when it needs to be updated, you can update only one openemr server. Kind of like wordpress.
Sandra
gutiersa
(Sandra Gutierrez)
May 29, 2018, 5:08pm
13
Yes, I see. thanks so much for this information.
thank you for the reminder @brady.miller , should we update the wiki with this?
hi @stephenwaite ,
Yep, we need to update the wiki.
-brady
gutiersa
(Sandra Gutierrez)
May 31, 2018, 2:11pm
18
OK, so I have been able to set up multisite, but when I try to log in I am now getting this message:
"Missing file: drivers/adodb-mysql_log.inc.php
ADONewConnection: Unable to load database driver ‘’
adodb-mysql_log.inc.php issue/topic has been migrated to here:
This file seems to be missing from openemr. In both the linux package and the XAMPP package.
I can’t find it anywhere online either.
I am using Freebsd 11.1, PHP7.2, Mysql 57, Nginx
I am getting this error message:
"Missing file: drivers/adodb-mysql_log.inc.php
ADONewConnection: Unable to load database driver ‘’
on logging in.
Thanks
Sandra