How to Install Open Source POS on Debian Latest

Open Source POS is an open-source point-of-sale system that allows businesses to manage their sales, inventory, and customers. In this tutorial, we will see how to install Open Source POS on a Debian Latest system.

Prerequisites

Before proceeding with the installation of Open Source POS, you must have the following prerequisites:

Step 1: Install Apache Web Server

Open a terminal and run the following command to install the Apache web server on Debian:

$ sudo apt update
$ sudo apt install apache2

Step 2: Install PHP and Required Extensions

Next, you will need to install PHP and the required extensions for Open Source POS. Run the following command to install PHP and extensions:

$ sudo apt install php php-mysql php-curl php-gd php-imagick php-intl php-zip php-mbstring

Step 3: Install MySQL Database

Open Source POS requires a MySQL database to store its data. Run the following command to install MySQL:

$ sudo apt install mysql-server

During the installation, you will be asked to set a root password for MySQL. Set the password and remember it, as you will need it later.

Step 4: Download and Install Open Source POS

Now that we have installed all the dependencies, we can proceed to download and install Open Source POS from its Github repository.

Run the following commands in the terminal to download Open Source POS:

$ cd /var/www/html
$ sudo git clone https://github.com/opensourcepos/opensourcepos.git
$ cd opensourcepos
$ sudo cp application/config/database.php.example application/config/database.php
$ sudo cp application/config/config.php.example application/config/config.php
$ sudo chown -R www-data:www-data /var/www/html/opensourcepos
$ sudo chmod -R 755 /var/www/html/opensourcepos

Step 5: Create a MySQL Database and User

Before you can start using Open Source POS, you need to create a MySQL database and a user with appropriate privileges.

Log in to MySQL using the following command:

$ mysql -u root -p

Enter the MySQL root password that you set during the installation.

Run the following commands to create a new MySQL database and user for Open Source POS:

CREATE DATABASE ospos;
GRANT ALL PRIVILEGES ON ospos.* TO 'osposuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Note: Replace 'password' with a strong password of your choice.

Step 6: Configure Open Source POS

Go to your web browser and enter the following URL:

http://localhost/opensourcepos

You will be taken to the Open Source POS installation wizard. Follow the on-screen instructions to configure Open Source POS.

During the installation, you will be asked for the MySQL database credentials. Enter the following details:

Database Name: ospos
Database Username: osposuser
Database Password: [password]

Note: Replace [password] with the password you set for the MySQL user.

Once the installation is complete, you will be taken to the Open Source POS login page. Use the default credentials to log in:

Username: admin
Password: pointofsale

You should change the default password after logging in.

Conclusion

In this tutorial, you learned how to install Open Source POS on Debian Latest. Open Source POS is a powerful open-source point-of-sale system that can be used by businesses of all sizes to manage their sales, inventory, and customers.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!