Orange Pi Zero/Lite Install

I have managed to install openemr on an Orange Pi Zero…seems to work fine even with the Zero’s limited 512M of memory…
Also works on the Orange Pi Lite as well.

If anyone is interested or may see a problem or an improvement please contribute…

I am working on a script and these commands are what I use so far under:

Armbian Bionic 5.4.2

apt update
apt upgrade
apt-get install apache2 mysql-server libapache2-mod-php libtiff-tools php php-mysql php-cli php-gd php-xsl php-curl php-soap php-json php-gettext imagemagick php-mbstring php-zip php-ldap wget -y

mysql_secure_installation
mysql -u root -p
CREATE DATABASE openemr;
CREATE USER ‘openemruser’@‘localhost’ IDENTIFIED BY ‘Pass1234!’;
GRANT ALL PRIVILEGES ON openemr.* TO ‘openemruser’@‘localhost’;
FLUSH PRIVILEGES;
exit

vi /etc/php/7.2/apache2/php.ini

short_open_tag = Off
max_execution_time = 60
max_input_time = -1
max_input_vars = 3000
memory_limit = 256M
display_errors = Off
log_errors = On
post_max_size = 30M
file_uploads = On
upload_max_filesize = 30M
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
mysqli.allow_local_infile = On

wget https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz
tar xvzf openemr*.tar.gz
mv openemr-5.0.2 openemr
mv openemr /var/www/html/
chown -R www-data:www-data /var/www/html/openemr
chmod 666 /var/www/html/openemr/sites/default/sqlconf.php

reboot

vi /etc/apache2/sites-available/openemr.conf

<Directory “/var/www/html/openemr”>
AllowOverride FileInfo
Require all granted

<Directory “/var/www/html/openemr/sites”>
AllowOverride None

<Directory “/var/www/html/openemr/sites/*/documents”>
Require all denied

a2ensite openemr
systemctl reload apache2
apachectl -k restart

I’ve changed tar xvzf openemr*.tar.gz to tar -pxvzf openemr*.tar.gz