I am installing a new server, I have done this before but following lightsail guide, then docker guide.
Now I want to install it from scratch to have more control over it.
I have found this guide OpenEMR 7.0.1 Linux Installation - OpenEMR Project Wiki
After login in to my server, I have run sudo apt update, then sudo apt upgrade -y. I have rebooted the instance and logged in again.
It requires PHP, Apache and MariaDB, so I have done this:
sudo apt-get install apache2 mariadb-server libapache2-mod-php libtiff-tools php php-mysql php-cli php-gd php-xml php-curl php-soap php-json imagemagick php-mbstring php-zip php-ldap
Then I rebooted again.
Then I continue to setup root password for my database
I have answered the questions, most of them as suggested. The first question asks if root password has been set, in my case, I have answered none. Then I switch to unix_socket authentication followed by I want to set root password. I have entered it twice, because we will need this when running setup tool in step 2.
Then I downloaded OpenEMR from here:
sudo tar -pxvzf openemr-7.0.1.tar.gz
Then move it to apache
sudo mv openemr-7.0.1 /var/www/html/openemr
Now its time to setup OpenEMR. Open a browser tab, using your server´s public IP, followed by /openemr.
Continue with “Configuring the Install through the WEB GUI” OpenEMR 7.0.1 Linux Installation - OpenEMR Project Wiki
For step 5, apache configuration file is located at /etc/apache2/sites-available/000-default.conf in Ubuntu.