# Blank screen on first start of OpenEMR 5.0.2

**URL:** <https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412>\
**Category:** Support\
**Tags:** installation\
**Created:** [May 5, 2020, 2:39pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412 "2020-05-05T14:39:17Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [May 10, 2020, 10:42pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/41 "2020-05-10T22:42:00Z")

</div>

The nice thing about the above install instruction set is that is can be done on a bare bones ubuntu install (in fact, having apache installed on the ubuntu will cause issues since they will fight for port 80; this can easily be adjusted by changing the port in the docker-compose.yml script though). No messing with dependencies. It just works and you get to even drink a cup of 🍵 (or ☕ ) 🙂

---

<div class="post-metadata">

**Author:** ![Mohammad](https://community.open-emr.org/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@Mohammad](https://community.open-emr.org/u/Mohammad)\
**Post date:** [May 11, 2020, 3:59am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/42 "2020-05-11T03:59:14Z")

</div>

if https with openemr certs. you do not need port 80, only 443 am I correct?

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [May 11, 2020, 4:53am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/43 "2020-05-11T04:53:50Z")

</div>

hi @Mohammad , Yes, to clarify, can also use port 443 (ssl), which can also be changed if needed in the docker-compose.yml

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 11, 2020, 6:49am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/44 "2020-05-11T06:49:37Z")

</div>

Thank you Sandra. That’s kind of you.

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 11, 2020, 6:53am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/45 "2020-05-11T06:53:53Z")

</div>

Thank you Stephen. Super simple hmmm, that’s tempting… I’ll give it a go. I presume I’d better purge my system of all openemr, mysql, mariadb, apache files and folders before starting…? What about php?

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 12, 2020, 6:43am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/46 "2020-05-12T06:43:07Z")

</div>

@stephenwaite @brady.miller

The docker procedure carried through smoothly, apparently successfully, but when I try to open localhost/openemr in my browser (Firefox), I persistently get: “Problem loading page. The connection to the server was reset while the page was loading”. Same in Chrome: “This site can’t be reached”.

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [May 12, 2020, 7:05am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/47 "2020-05-12T07:05:09Z")

</div>

try just:  
[http://localhost/](http://localhost/)

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 12, 2020, 7:09am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/48 "2020-05-12T07:09:22Z")

</div>

Thank you, that works.

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 12, 2020, 7:14am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/49 "2020-05-12T07:14:29Z")

</div>

@stephenwaite @brady.miller My next question is: How do I restore my openemr 5.0.2 backup to this docker installation?

---

<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:** [May 12, 2020, 10:45pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/50 "2020-05-12T22:45:01Z")

</div>

you don’t, but you can connect this installation to your database by entering the password information in …/sites/default/sqlconf.php

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [May 12, 2020, 11:36pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/51 "2020-05-12T23:36:56Z")

</div>

Hi,  
Backups and restores can be done with dockers like any other installation. The key difference is that need to do the steps within the openemr docker that you now have running. Just think of the docker as a virtual machine and then it makes more sense.

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 13, 2020, 5:21am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/52 "2020-05-13T05:21:04Z")

</div>

@gutiersa @brady.miller Sadly, I think it fair to say you both overestimate my understanding. I have a Docker installation. I have a backup, on a memory stick, made from a regular installation of 5.0.2 on another machine. I need that data accessible by my new Docker installation. What do I do? I am afraid I will need step by step instructions. My apologies.

---

<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:** [May 13, 2020, 11:03pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/53 "2020-05-13T23:03:38Z")

</div>

hi @rdh61, no prob, we’re up for 🧗

let’s bring in the db first

1. extract the contents of `emr_backup.tar` on your 💾 to your Downloads folder
2. go there in your terminal prompt; `cd ~/Downloads`
3. `gzip -d openemr.sql.gz`
4. `docker ps` we’re looking for the container id for the mariadb to use in the next step
5. `docker cp /home/$USER/Downloads/openemr.sql <mariadb container id>:.`
6. `docker exec -it <mariadb container id> /bin/bash`
7. `mysql -uroot -proot openemr < openemr.sql`
8. `exit`
9. `docker exec -it $(docker ps | grep _openemr | cut -f 1 -d " ") /bin/sh`
10. `wget https://raw.githubusercontent.com/openemr/openemr/rel-502/sql_upgrade.php`
11. run the upgrade script even though not “upgrading” :); go to localhost/sql\_upgrade.php in your browser 🦊
12. back to terminal and `rm sql_upgrade.php`
13. `exit`
14. go to localhost to login and see your data 🙂

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 14, 2020, 10:21am UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/54 "2020-05-14T10:21:04Z")

</div>

Thank you very much. I have come unstuck at point 5. What have I done wrong?

```
robert@roberts-work-laptop:~$ cd ~/Downloads
robert@roberts-work-laptop:~/Downloads$ gzip -d openemr.sql.gz
robert@roberts-work-laptop:~/Downloads$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79f95d5fae4c openemr/openemr:5.0.2 "./run_openemr.sh" 2 days ago Up 39 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp openemr_openemr_1
16d0ec71eb7a mariadb:10.4 "docker-entrypoint.s…" 2 days ago Up 39 minutes 3306/tcp openemr_mysql_1
robert@roberts-work-laptop:~/Downloads$ docker cp /home/robert/Downloads/openemr.sql <16d0ec71eb7a>:
bash: 16d0ec71eb7a: No such file or directory
```

---

<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:** [May 14, 2020, 12:35pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/55 "2020-05-14T12:35:15Z")

</div>

hi @rdh61, no need for the less than greater than symbols around the container id and you need the period to specify that you’d like to keep the same name on the copy:

```auto
docker cp /home/robert/Downloads/openemr.sql 16d0ec71eb7a:.

```

---

<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:** [May 14, 2020, 2:38pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/56 "2020-05-14T14:38:22Z")

</div>

Unfortunately, my understanding of docker containerization is minimal, ☹

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 14, 2020, 3:19pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/57 "2020-05-14T15:19:23Z")

</div>

OK, I got through the 11 steps, but what I see in my browser is:

“FATAL ERROR: crypt() function is not working correctly in OpenEMR”

But I have a doubt. When you wrote: “run the upgrade script even though not “upgrading” :); go to localhost/sql\_upgrade in your browser” (I found out you meant “localhost/sql\_upgrade.php” 🙂), did you actually mean “run the script” (which I did, as though upgrading from 5.0.1), or did you just mean “go to localhost/sql\_upgrade.php in your browser”?

---

<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:** [May 14, 2020, 3:38pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/58 "2020-05-14T15:38:24Z")

</div>

nice catch, i edited, yes, had you run it just in case, it’s good practice

> [@rdh61](#):
>
> “FATAL ERROR: crypt() function is not working correctly in OpenEMR”

have seen that error before and we’ll have to reset your admin password  
so back to the mariadb docker

1. `docker exec -it 16d0ec71eb7a /bin/bash`
2. `mysql -uroot -proot openemr`
3. `UPDATE users_secure SET password = '$2a$05$MKtnxYsfFPlb2mOW7Qzq2Oz61S26s5E80Yd60lKdX4Wy3PBdEufNu', salt = '$2a$05$MKtnxYsfFPlb2mOW7Qzq2b$' WHERE username = 'admin';`
4. login with admin and pass at localhost

---

<div class="post-metadata">

**Author:** ![rdh61](https://community.open-emr.org/user_avatar/community.open-emr.org/rdh61/32/11407_2.png) [@rdh61](https://community.open-emr.org/u/rdh61)\
**Post date:** [May 14, 2020, 3:47pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/59 "2020-05-14T15:47:39Z")

</div>

Thank you very much, all good now. If I should find anything not working as I expect, should I post on this thread or start a new one?

---

<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:** [May 14, 2020, 3:48pm UTC](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412/60 "2020-05-14T15:48:31Z")

</div>

it’s fine here

did you have any documents to bring over from your previous install?

[Previous page](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412.md?page=2)

[Next page](https://community.open-emr.org/t/blank-screen-on-first-start-of-openemr-5-0-2/14412.md?page=4)
