In this article, I’m going to show you how to install PHP Point of Sale, a free Point of Sale system made using PHP, the server-side scripting language. Which I mainly use to manipulate and retrieve data from database like MySql.
In the time of writing of this article, I’m working on a point of sale system for our school project. This free point of sale system is really a help in making the project. You can learn from the system itself. You can gain insight on what a point of sale system really does.
This point sale system is made using the MVC framework. MVC stands for Model, View , Controller.
After downloading and installing all those requirements. You’re now ready to get started. First thing that you would want to do is to extract the contents of PHP Point of Sale to your www directory.
Name the extracted folder to whatever you want. As long as it is comprehensive and easy to remember. Something like ‘phppos’ will do.
Open up the folder and make sure that you see something like this inside of it:
The most important thing that you must have in the first level of that folder is the ‘index.php’ file.
Here’s the complete folder path of mine, use it as a basis for your installation:
Next thing that you need to do is to create a new mysql database, this would be use by php pos to create tables that will be used by the system. Its necessary to create the database first, because it is where the tables will reside.
Just click on ‘create’ after typing the desired name of the database.
You will now be redirected to the database. It doesn’t have tables for now. To put tables, just click on the ‘import’ tab. Then click on ‘choose file’ to choose the sql file that contains the information to rebuild the database.
Now, you need to navigate to the folder where the database for php pos is stored. Mine is stored on:
Highlight the ‘database.sql’ file and click on ‘Open’:
Now, you need to make sure that the ‘database.sql’ file is actually the one which is opened. Then click on ‘go’ at the bottom right corner of the phpmyadmin interface:
Here’s the green highlight. Telling you that the query was completed successfully.
You will notice that the database is now populated with tables.
But were not done yet, next thing that you need to do is to edit the configuration file of php pos to match your database configuration.
Again, use the path below as a basis on where you will find the configuration file:
c -is the name of the drive where you have installed wamp. By default it is c.
phpos -is what you have named the folder which has the php pos files.
The others which I haven’t mentioned are constants unless you have messed up with the folder names inside the php pos folder. Inside the config folder you will see a file named ‘datebase.php.tpl’. Rename that one to ‘database.php’. And open it up using a text editor.
Most of the codes which are on that file are just comments. So scroll down until you find the codes which are not commented out. We will only be needing to modify these specific lines of code:
I’ve already put some comments to guide you. Don’t copy and paste the code above. You might get some errors. Just edit the file which is already available to you and put the corresponding data that matches your configuration.
Default username would be admin. And default password is pointofsale. You won’t see the actual password in the user table, since all that is stored is the encrypted version of the password.
That’s how you install php point of sale. I hope this guide helped you. And please share it using the buttons below if ever this guide helped you. Thanks!