# Openemr setup hangs in FEMP stack

**URL:** <https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357>\
**Category:** Management and Administration\
**Created:** [April 29, 2020, 4:32am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357 "2020-04-29T04:32:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 29, 2020, 4:32am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/1 "2020-04-29T04:32:19Z")

</div>

Ok, here is my setup. I have been at this for days. I need help.  
FreeBSD 12.1  
Nginx 1.18  
Mysql 8.0  
PHP 7.4  
I would like to make this work. However, my logs are not very forthcoming at all.  
The install is hanging at the setup step:

Nginx error log says:

> 2020/04/29 00:14:00 [error] 6023#100984: \*1 FastCGI sent in stderr: “PHP message: PHP Notice: Undefined index: collate in /usr/local/www/openemr/setup.php on line 984” while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: [myserver.com](http://myserver.com), request: “POST /setup.php?site=default HTTP/2.0”, upstream: “fastcgi://unix:/tmp/php-fpm.sock:”, host: “[myserver.com](http://myserver.com)”  
> 2020/04/29 00:15:00 [error] 6023#100984: \*1 upstream timed out (60: Operation timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: [myserver.com](http://myserver.com), request: “POST /setup.php?site=default HTTP/2.0”, upstream: “fastcgi://unix:/tmp/php-fpm.sock”, host: “[myserver.com](http://myserver.com)”

php-fpm log just says:

> ready to handle connections

I am not sure how to see the MySQL 8 log, but I have created the openemr user, with the mysql\_native\_password, and the database has been created. The problem started initially, when the program attempted to switch to the openemr user. I noticed that it had not been given privileges, so I set that up manually in Mysql 8.  
Still, the install is not progressing.

Any advice will be greatly appreciated.

Sandra

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 29, 2020, 4:51am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/2 "2020-04-29T04:51:31Z")

</div>

I dropped the database and restarted setup. Now I get this message from openemr:

> **ERROR**. unable to execute SQL: ‘INSERT INTO `lang_definitions` VALUES (109553, 584, 23, ‘E' stato creato e linkato un oggetto GCAC incompleto. E' necessario completarlo in seguito.’)’ due to: Writing one row to the row-based binary log failed

Sandra

---

<div class="post-metadata">

**Author:** ![RachelEllison](https://community.open-emr.org/user_avatar/community.open-emr.org/rachelellison/32/14041_2.png) [@RachelEllison](https://community.open-emr.org/u/RachelEllison)\
**Post date:** [April 29, 2020, 6:24am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/3 "2020-04-29T06:24:13Z")

</div>

Hi Sandra,

MySQL 8 broke some things in the codebase. You may want to consider using a slightly older version.

If MySQL 8 is a hard requirement there should hopefully be some fixes in the next patch.

> [@How do I locate contrib/?](https://community.open-emr.org/t/how-do-i-locate-contrib/14336/59):
>
> hi @sjpadgett, no, shouldn’t be, should stick to 5.7. Although there are some mysql 8 fixes in soon to be released [patch 2](https://github.com/openemr/openemr/commit/73eed44673d40b15627378186b4030e8fa2de90e)

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 29, 2020, 6:33am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/4 "2020-04-29T06:33:22Z")

</div>

I see, so no one has been able to set up openemr with MySQL 8?

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [April 29, 2020, 1:45pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/5 "2020-04-29T13:45:54Z")

</div>

hi @gutiersa, pretty sure it’s running, haven’t loaded the [insane environment](https://github.com/openemr/openemr/tree/master/contrib/util/docker) in a little while but sounds like it’s time to check in on it.

---

<div class="post-metadata">

**Author:** ![RachelEllison](https://community.open-emr.org/user_avatar/community.open-emr.org/rachelellison/32/14041_2.png) [@RachelEllison](https://community.open-emr.org/u/RachelEllison)\
**Post date:** [April 29, 2020, 4:07pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/6 "2020-04-29T16:07:09Z")

</div>

Hi Sandra,

Looks like the patch with some MySQL 8 fixes was just posted a few hours ago.

> [@OpenEMR 5.0.2 Patch](https://community.open-emr.org/t/openemr-5-0-2-patch/13007/13):
>
> Hi, The 2nd patch for OpenEMR 5.0.2 has been released: [https://www.open-emr.org/wiki/index.php/OpenEMR\_Patches](https://www.open-emr.org/wiki/index.php/OpenEMR_Patches) The patch includes security fixes and a bunch of improvements and fixes : \*Critical security fix - reported by Dennis Brinkrolf (RIPS Technologies), fixed by Jerry Padgett and Brady Miller \*Security fixes - reported by Dennis Brinkrolf (RIPS Technologies), Daniel Pflieger, and Visolve, fixed by Jerry Padgett and Brady Miller \*COVID19 ICD10 codes added - by Stephen Waite \*Patient…

Are you using docker? If you repull the flex docker it might fix things for you.

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 29, 2020, 4:13pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/7 "2020-04-29T16:13:30Z")

</div>

Unfortunately docker is broken for FreeBSD.

---

<div class="post-metadata">

**Author:** ![mdsupport](https://community.open-emr.org/user_avatar/community.open-emr.org/mdsupport/32/10763_2.png) [@mdsupport](https://community.open-emr.org/u/mdsupport)\
**Post date:** [April 29, 2020, 4:44pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/8 "2020-04-29T16:44:39Z")

</div>

Apart from few checks, primary task of setup is running mysql LOAD statement. If you are developer, you can help by loading database.sql directly - either from shell or other tools like phpmyadmin. If import is ok that eliminates mysql setup issues and isolates problem to setup.exe load code.

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 29, 2020, 10:33pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/9 "2020-04-29T22:33:56Z")

</div>

Ok, then. This is my setup now:  
FreeBSD 12.1  
Nginx 1.18  
Mysql 5.7  
PHP 7.4  
OpenSSL 1.1.1d-freebsd  
Openemr 5.0.2 patch 2

I am able to install openemr but when login in as the administrator, I get the blank screen.  
My address bar has:

[https://example.com/interface/main/tabs/main.php?token\_main=a](https://example.com/interface/main/tabs/main.php?token_main=a) really long string here.

My error logs are pretty useless.

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 30, 2020, 1:12am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/10 "2020-04-30T01:12:32Z")

</div>

Seems that it is my very aggressive SSL configuration that is breaking my install.  
I will update this thread when I know more.

---

<div class="post-metadata">

**Author:** ![im-Amitto](https://community.open-emr.org/user_avatar/community.open-emr.org/im-amitto/32/14059_2.png) [@im-Amitto](https://community.open-emr.org/u/im-Amitto)\
**Post date:** [April 30, 2020, 8:13am UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/11 "2020-04-30T08:13:59Z")

</div>

I haven’t checked the docker or a specific release but but the master source code works fine with mysql8. I haven’t caught up in any error since i started. I can try setting up a same enviornmt as yours if you are still planning to use mysql8 .

---

<div class="post-metadata">

**Author:** ![gutiersa](https://community.open-emr.org/user_avatar/community.open-emr.org/gutiersa/32/11958_2.png) [@gutiersa](https://community.open-emr.org/u/gutiersa)\
**Post date:** [April 30, 2020, 4:19pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/12 "2020-04-30T16:19:24Z")

</div>

Yes, I think it is important for improved security.

---

<div class="post-metadata">

**Author:** ![im-Amitto](https://community.open-emr.org/user_avatar/community.open-emr.org/im-amitto/32/14059_2.png) [@im-Amitto](https://community.open-emr.org/u/im-Amitto)\
**Post date:** [April 30, 2020, 5:46pm UTC](https://community.open-emr.org/t/openemr-setup-hangs-in-femp-stack/14357/13 "2020-04-30T17:46:16Z")

</div>

It will be a great help to reproduce the error If you can specify the instruction you followed to run openemr with mysql.
