Setting up a new site with multi-site

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

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

hi @gutiersa, are you looking to setup multisite?

https://www.open-emr.org/wiki/index.php/OpenEMR_Multiple_Sites_Module

1 Like

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

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

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

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):

-brady

1 Like

@brady.miller please what is the function of multisite?

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

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

ok, rough draft is pushed https://www.open-emr.org/wiki/index.php/OpenEMR_Multiple_Sites_Module

looks great, thanks!

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: