This tutorial will guide you through the installation of Open Source POS on Ubuntu Server. Open Source POS is a free and open source point of sale software that allows you to manage your store more efficiently.
Before you begin, it is recommended to update your system to ensure that all packages are up to date. You can do this by running the following commands:
sudo apt update
sudo apt upgrade
Next, you need to install the required packages for Open Source POS to run. Run the following command:
sudo apt install apache2 mysql-server php php-mysql libapache2-mod-php
This will install Apache, MySQL, and PHP packages, which are required for Open Source POS.
To use Open Source POS, you need to create a MySQL database and user. Run the following command to log in to the MySQL prompt:
sudo mysql -u root -p
Enter your MySQL root password and press Enter.
Next, create a new database and user for Open Source POS using the following commands:
CREATE DATABASE opensourcepos;
CREATE USER 'opensourceposuser'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON opensourcepos.* TO 'opensourceposuser'@'localhost';
FLUSH PRIVILEGES;
Replace your_password_here
with a secure password of your choice.
Download the latest version of Open Source POS from the following link:
https://github.com/opensourcepos/opensourcepos/releases/latest
You can use wget
to download the file from the command line:
wget https://github.com/opensourcepos/opensourcepos/releases/latest/download/opensourcepos.zip
Unzip the downloaded file and move the contents to the web directory:
unzip opensourcepos.zip
sudo mv opensourcepos/* /var/www/html/
Next, change the ownership of the files to the Apache user:
sudo chown -R www-data:www-data /var/www/html/
Open Source POS comes with a configuration file called application/config/database.php
. You need to edit this file and update the following sections with the values you specified during the database and user creation:
'hostname' => 'localhost',
'username' => 'opensourceposuser',
'password' => 'your_password_here',
'database' => 'opensourcepos',
Save and close the file.
Create a new Apache virtual host configuration file for Open Source POS:
sudo nano /etc/apache2/sites-available/opensourcepos.conf
Add the following content to the file:
<VirtualHost *:80>
ServerName your_server_ip_or_hostname
DocumentRoot /var/www/html/
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Replace your_server_ip_or_hostname
with your server's IP address or hostname.
Save and close the file.
You also need to enable the rewrite
module and the new virtual host configuration:
sudo a2enmod rewrite
sudo a2ensite opensourcepos.conf
sudo systemctl restart apache2
Open a web browser and go to http://your_server_ip_or_hostname/
. You should see the Open Source POS login page. Enter the following default username and password to log in:
Username: admin
Password: pointofsale
You can change the default username and password later from the Open Source POS dashboard.
Congratulations, you have successfully installed Open Source POS on Ubuntu Server!
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!
Alternatively, for the best virtual desktop, try Shells!