open source pos installation guide.pdf

5
Installation This installation guide covers installing OSPOS on Windows using WampServer. You should also be able to use this guide to help you install the system on any web server. This guide has been tested with OSPOS 2.3.1. Ignore any images that mention another version. We just didn't bother updating them. Feel free to contact us (/contact) if there's a newer version released and we don't mention it on this page. We want to try to make sure this installation guide is always up to date. When you download OSPOS (http://sourceforge.net/projects/opensourcepos/) , you should find a file called README.md. This includes information about how to install the application. Unfortunately, these steps can be confusing for people not used to installing web applications. So we've written this guide to help out the OSPOS community. Note that we've changed the order of some of the steps to make the installation process easier. We've also assumed that you know basic Windows administration, such as unzipping files and copying files into directories. How to Install 1. Create/locate a new MySQL database to install Open Source Point of Sale into To do this, you actually have two options: you can install OSPOS on your local computer or you can install it on the Web. For this guide, we're going to assume you're installing it on your local Windows machine. Start by downloading and installing WampServer (http://www.wampserver.com/en/) . You'll need this software to run OSPOS. (Note: if WampServer crashes after you install it and says something about Aestan Tray Menu, install .NET Framework 3.5. That fixed the problem for us.) When WampServer's installed, look in your taskbar for a Green W. Click that icon, and look for phpMyAdmin. Click that, and the program should launch. You should find yourself inside phpMyAdmin. Click on the Databases tab to get to the "Create New Database" form. Fill out a name and click the Create button. It should look like the screenshot below: Home Tour Guide Tips Industries Articles Contact Us

Upload: marietta-fragata-ramiterre

Post on 15-Sep-2015

1.379 views

Category:

Documents


151 download

DESCRIPTION

Open Source POS Installation Guide.pdf

TRANSCRIPT

  • Installation

    ThisinstallationguidecoversinstallingOSPOSonWindowsusingWampServer.Youshouldalsobeabletousethisguidetohelpyouinstallthesystemonanywebserver.

    ThisguidehasbeentestedwithOSPOS2.3.1.Ignoreanyimagesthatmentionanotherversion.Wejustdidn'tbotherupdatingthem.

    Feelfreetocontactus(/contact)ifthere'sanewerversionreleasedandwedon'tmentionitonthispage.Wewanttotrytomakesurethisinstallationguideisalwaysuptodate.

    WhenyoudownloadOSPOS(http://sourceforge.net/projects/opensourcepos/),youshouldfindafilecalledREADME.md.Thisincludesinformationabouthowtoinstalltheapplication.

    Unfortunately,thesestepscanbeconfusingforpeoplenotusedtoinstallingwebapplications.Sowe'vewrittenthisguidetohelpouttheOSPOScommunity.Notethatwe'vechangedtheorderofsomeofthestepstomaketheinstallationprocesseasier.

    We'vealsoassumedthatyouknowbasicWindowsadministration,suchasunzippingfilesandcopyingfilesintodirectories.

    HowtoInstall

    1.Create/locateanewMySQLdatabasetoinstallOpenSourcePointofSaleinto

    Todothis,youactuallyhavetwooptions:youcaninstallOSPOSonyourlocalcomputeroryoucaninstallitontheWeb.

    Forthisguide,we'regoingtoassumeyou'reinstallingitonyourlocalWindowsmachine.

    StartbydownloadingandinstallingWampServer(http://www.wampserver.com/en/).You'llneedthissoftwaretorunOSPOS.

    (Note:ifWampServercrashesafteryouinstallitandsayssomethingaboutAestanTrayMenu,install.NETFramework3.5.Thatfixedtheproblemforus.)

    WhenWampServer'sinstalled,lookinyourtaskbarforaGreenW.Clickthaticon,andlookforphpMyAdmin.Clickthat,andtheprogramshouldlaunch.

    YoushouldfindyourselfinsidephpMyAdmin.ClickontheDatabasestabtogettothe"CreateNewDatabase"form.

    FilloutanameandclicktheCreatebutton.Itshouldlooklikethescreenshotbelow:

    Home Tour Guide Tips Industries Articles ContactUs

  • YoushouldnowseeyournewdatabaseintheDatabaseslist.Clickonyournewdatabase.Itshouldlooksomethinglikethis:

    Nowthatyou'veloadedupyournewdatabase,it'stimetoaddauser.

    ClickonthePrivilegestabandthenonthe"AddUser"link.

    (Note:Ifyoudon'tseethePrivilegestab,lookforitundertheMoretab.)

    Filloutthe"AddUser"form.

    The"LoginInformation"shouldlooklikethescreenshotbelow:

    Obviously,youcanuseanyusernameandpasswordthatyouwant.WealwaysautomaticallygenerateapasswordwithphpMyAdmin,becauseit'smoresecure.

    Now,beforeyoudoanythingelse,openupNotepad(Startmenu>AllPrograms>Accessories>Notepad)andcopytheUsername,password,anddatabasenameintoit.You'llneedthisinformationinafewminutes.

    Whenyou'vedonethat,scrolldowntothebottomofthepageinphpMyAdminandclickthe"Adduser"buttoninthebottomrighthandcorner.Youcanleavetherestofthesettingsastheyare.You'venowcreatedauserforyourdatabase.

    2.UnzipanduploadtheOpenSourcePointofSalefilestowebserver

    DownloadthelatestversionofOSPOSifyouhaven'talready.Youcandownloaditfromsourceforge

  • (http://sourceforge.net/projects/opensourcepos/).Justclickthebig,greenbutton.Itshouldlooklikethescreenshotbelow:

    Whenyoudownloadthatfile,you'llwanttounziptheOSPOSfilesintoyourWampServerwebdirectory.

    Bydefault,thisdirectoryis"C:\wamp\www".So,unlessyou'vechangedthis,unziptheOSPOSfilesthere.Thefilesarestoredinadirectorycalled"opensourceposmaster".Renamethistoopensourcepos.

    3.Executethefiledatabase/database.sqltocreatethetablesneeded

    Nowthatyou'vecreatedadatabaseandauser,andunzippedtheOSPOSfiles,you'llneedtoaddsomedatatoyourdatabasesothatOpenSourcePointofSalewillwork.

    Makesureyou'reinsidethedatabaseyoumade.Thenclickonthe"Import"tabinphpMyAdmin.Itwilllooklikethescreenshotbelow:

    You'llgettoascreencalled"Importingintothedatabase...".Lookunderthe"Filetoimport"headingforthe"ChooseFile"button.Clickthat,andbrowseto"C:\wamp\www\opensourcepos\database"anddoubleclickonthe"database.sql"file.Lookforthe"Go"buttonatthebottomofthepage,andclickit.Youcanleavetherestofthesettingsastheyare.

    Whenit'sdoneimportingthefile,youshouldseeagreensuccessmessagethatlookslikethescreenshotbelow:

    ThismeansthatthetablesanddatayouneedtouseOSPOShavebeencreated.

    46.ModifyOSPOSconfigurationfiles

    Browseto"C:\wamp\www\opensourcepos\application\config"andlookforafilecalled"database.php.tmpl".Renamethisfile"database.php"andthenopenitsoyoucaneditit.

    (Note:ifyouneedagoodtexteditor,tryNotepad++(http://notepadplusplus.org/).)

    You'llwanttochangelines5254.

    52:$db['default']['username']='yourusername'

    53:$db['default']['password']='yourpassword'

    54:$db['default']['database']='yourdatabase'

    Copyyourusername,password,anddatabasefromthetextfileyoucreatedearliertotheconfigurationfile.Replaceyourusername,yourpassword,andyourdatabasewithyouractualusername,password,anddatabasefromthetextfile.Makesureyoupastethembetweenthesinglequotes.

    ModifyingtheselineswilltellOSPOStousethedatabaseanduseryoucreatedearlier.

    Savethisfile,andthenopen"config.php"andlookonline240.Changethislinetoauniqueencryptionkey.

  • Feelfreetousetherandomkeygeneratedbythisencryptionkeygenerator(http://jeffreybarke.net/tools/codeigniterencryptionkeygenerator/).

    You'renowdoneeditingtheconfigurationfiles.It'stimetoruntheapplicationforthefirsttime.

    7.GotoyourPointofSaleinstallviathebrowser

    YoucanreachyourOSPOSinstallviaawebbrowser.We'vefoundGoogleChrome(http://www.google.com/chrome)worksthebestwithOSPOS.

    Browseto"http://localhost/opensourcepos/"andyoushouldseetheOSPOSloginform.Itshouldlooklikethescreenshotbelow:

    8.LOGINusingdefaultusernameandpassword

    Thedefaultlogininformationis:

    Username:adminPassword:pointofsale

    TypetheseintotheLoginForm,andclicktheGobutton.

    (Note:ifyougetanerrormessage"Unabletoloadtherequestedlanguagefile:language/english/form_validation_lang.php"gotoapplication/config/config.phpandchangeline85from'english'to'en'.)

    Ifyou'veinstalledOSPOScorrectly,youshouldseethewelcomescreen:

  • Note:ifyouwantOpenSourcePointofSaletolookmorelikeanapplication,insteadofawebsite,pleasereadourtip(/tips/makeosposrunapplication)aboutGoogleChromeapplicationshortcuts.