Installing on Raspberry PI Orange PI (Headless OSPOS) - opensourcepos/opensourcepos GitHub Wiki
Orange pi one (512ram 4 core H3, 16gb microsdcard) Armbian_23.02.2_Orangepione_bullseye_current_5.15.93.img All installation from root user
apt update && apt upgrade -y
*5-15 min wait
dpkg-reconfigure tzdata
*choose your timezone
apt install mariadb-server mariadb-client
*1-3 min wait
mysql_secure_installation
Enter current password for root (enter for none): Enter
Switch to unix_socket authentication [Y/n]: n
Change the root password? [Y/n]: y
New password: yourbestpassword
Re-enter new password: yourbestpassword
Remove anonymous users? [Y/n]: y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
apt install apache2 php unzip
*1-3 min wait
a2enmod rewrite
systemctl restart apache2
apt install php-mbstring php-xml php-mysql php-common php-gd php-json php-cli php-curl php-intl php-bcmath
*1-3 min wait
apt install libapache2-mod-php
a2enmod php7.4
cd /var/www/html
rm index.html
unzip opensourcepos.3.3.9.c00ff2.zip
*this command is one line:
mysql -u root -e "CREATE SCHEMA ospos;CREATE USER 'admin'@'%' IDENTIFIED BY 'pointofsale';GRANT ALL PRIVILEGES ON ospos . * TO 'admin'@'%' IDENTIFIED BY 'pointofsale' WITH GRANT OPTION;FLUSH PRIVILEGES;"
mysql -u admin -ppointofsale -D ospos < /var/www/html/database/database.sql
*5-20 sec wait
nano /var/www/html/public/.htaccess
*Find that rule:
RewriteRule ^(.*)$ index.php?/ [L]
*change to this one:
RewriteRule ^(.*)$ /var/www/html/public/index.php?/ [L]
nano /etc/apache2/apache2.conf
- in section to <Directory /var/www/>
change:
AllowOverride All
nano /etc/php/7.4/apache2/php.ini
*add this lines after [PHP]
extension=intl
extension=gd
extension=openssl
extension=bcmath
extension=curl
extension=mysql
extension=gd2
systemctl restart apache2
Thats all! Now you can enter from your browser http://orange_pi_ip/
login: admin
password: pointofsale