5.6 KiB
Server Requirements
-
PHP version 5.6 to 7.2 is recommended. Please note that PHP needs to have
php-gd,php-bcmath,php-intl,php-openssl,php-mbstringandphp-curlinstalled and enabled. -
MySQL 5.5, 5.6 and 5.7 are supported, also MariaDB replacement is supported and apparently offering better performance.
-
Apache 2.2 and 2.4 are supported. Also Nginx has been proven to work fine, see wiki page here
-
Raspberry PI based installations proved to work, see wiki page here
-
For Windows based installations please read the wiki and also existing closed issues as this topic has been covered well in all the variants and issues.
Local install
First of all, if you're seeing the message 'system folder missing' after launching your browser, then that means you have cloned the repository and have not built the project properly.
- Dowload the latest stable release from github or unstable build from bintray. A regular repository clone will not work unless you are brave enough to build the whole project!
- Create/locate a new mysql database to install open source point of sale into
- Execute the file database/database.sql to create the tables needed
- unzip and upload Open Source Point of Sale files to web server
- Modify application/config/database.php and modify credentials if needed to connect to your database
- Modify application/config/config.php encryption key with your own
- Go to your point of sale install public dir via the browser
- LOGIN using
- username: admin
- password: pointofsale
- Enjoy
- Oops an issue? Please make sure you read the FAQ, wiki page and you checked open and closed issue on GitHub. PHP display_errors is disabled by default. Create an application/config/.env file from the .env.example to enable it in a development environment.
Local install using Docker
From now on ospos can be deployed using Docker on Linux, Mac or Windows. This setup dramatically reduces the number of possible issues as all setup is now done in a Dockerfile. Docker runs natively on mac and linux, but will require more overhead on windows. Please refer to the docker documentation for instructions on how to set it up on your platform.
- To build and run the image, download the latest build from bintray and issue following commands in a terminal with docker installed
docker-compose build
docker-compose up
- If you want to run from the latest git source, then use docker and composer to run the build
docker run --rm -v $(pwd):/app composer/composer install
docker run --rm -v $(pwd):/app -w /app lucor/php7-cli php bin/install.php translations develop
docker run --rm -it -v $(pwd):/app -w /app digitallyseamless/nodejs-bower-grunt sh -c "npm install && bower install"
docker-compose build
docker-compose up
Cloud install
A quick option would be to install directly to Digitalocean using their preconfigured LAMP stack. Create a DO account first, add a droplet with preconfigured LAMP and follow the instructions for Local Install below. You will be running a provisioned VPS within minutes.
Cloud install using Docker
This installation is NOT Recommended anymore and will soon be replaced by a one click DO installation procedure. Existing setups will keep working until the 21th of May but will need to be migrated in time in order to ensure user's safety.
If you want to run a quick demo of ospos or run it permanently in the cloud, then we suggest using Docker cloud together with the DigitalOcean hosting platform. This way all the configuration is done automatically and the install will just work.
If you choose DigitalOcean through this link, you will get a $10 credit for a first month of uptime on the platform. A full setup will only take about 2 minutes by following steps below.
- Create a Digitalocean account
- Create a docker cloud account
- Login to docker cloud
- Associate your docker cloud account with your previously created digital ocean account under settings
- Create a new node on DigitalOcean through the
Infrastructure > Nodestab. Fill in a name (ospos) and choose a region near to you. We recommend to choose a node with minimum 1G RAM for the whole stack - Click
- Othewise create a new stack under
Applications > Stacksand paste the contents of docker-cloud.yml from the source repository in the text field and hitCreate and deploy - Find your website url under
Infrastructure > Nodes > <yournode> > Endpoints > web - Login with default username/password admin/pointofsale
- DNS name for this server can be easily configured in the DigitalOcean control panel
More info on maintaining a docker install can be found on the wiki