Transcript
Page 1: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

InstallSimpleRiskonUbuntu14.04

IntroductionSimpleRiskisasimpleandfreetooltoperformriskmanagementactivities.BasedentirelyonopensourcetechnologiesandsportingaMozillaPublicLicense2.0,aSimpleRiskinstancecanbestoodupinminutesandinstantlyprovidesthesecurityprofessionalwiththeabilitytosubmitrisks,planmitigations,facilitatemanagementreviews,prioritizeforprojectplanning,andtrackregularreviews.Itishighlyconfigurableandincludesdynamicreportingandtheabilitytotweakriskformulasonthefly.Itisunderactivedevelopmentwithnewfeaturesbeingaddedallthetimeandcanbedownloadedforfreeordemoedathttps://www.simplerisk.it/.

DisclaimerTheluckysecurityprofessionalsworkforcompanieswhocanaffordexpensiveGRCtoolstoaideinmanagingrisk.Theunluckymajorityoutthereusuallyendupspendingcountlesshoursmanagingriskviaspreadsheets.It’scumbersome,timeconsuming,andjustplainsucks.WhenJoshSokolstartedwritingSimpleRisk,itwasoutofpurefrustrationwiththeotheroptionsoutthere.Whathe’sputtogetherisundoubtedlybetterthanspreadsheetsandgetsyoumostofthewaytowardsthe“R”inGRCwithoutbreakingthebank.Thatsaid,humanscanmakemistakes,andthereforetheSimpleRisksoftwareisprovidedtoyouwithnowarrantiesexpressedorimplied.Ifyougetstuck,[email protected]’lldoourbesttohelpyouout.Also,whileSimpleRiskwaswrittenbyasecuritypractitionerwithsecurityinmind,thereisnowaytopromisethatitis100%secure.Youacceptthatasariskwhenusingthesoftware,butifyoudofindanyissues,pleasereportthemtoussothatwecanfixthemASAP.

InstallUbuntuSimpleRiskshouldbeabletoworkonjustaboutanyoperatingsystemthatiscapableofrunningPHPandMySQL.SincethepurposeofthisguideistogetyouupandrunningwithSimpleRiskasquicklyaspossible,weassumethatyouareusingUbuntu,aFREEandeasytouseLinux-basedoperatingsystem.DownloadthelatestversionofUbuntu(atthetimeofthiswritingit’s14.04)andinstallit.SeetheUbuntudocumentationifyouarehavinganyissuesthere.Onceyouhaveaworkinginstallation,youcanmoveontothenextinstallationsteps.

GettheLatestUbuntuUpdatesLogintoyourUbuntuinstallationusingtheusernameandpasswordyoudefinedatsetup.SelecttheUnitymenu(theoneattheverytopofthebarontheleft)andtype“terminal”inthefieldthatpopsup.Thisshouldshowyouashortcuttotheterminalapplication.Youcanclickittolaunchtheterminal,but

Page 2: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

itmaybeagoodideatodragittotheUnitybarontheleftfirstsothatyoucaneasilystartitinthefuture.

Oncetheterminalislaunched,youwillwanttoupdatetheOStothelatestsoftwareversionsavailable.Todothisrun“sudoapt-getupdate”andenteryourpasswordwhenprompted.

Thiswillpulldownthelatestversioninformationforalloftheinstalledoperatingsystemfiles.Nowrun“sudoapt-getdist-upgrade”andanswer“y”whenitasksifyouwouldliketocontinue.

Page 3: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

InstallingApache,PHP,andMySQLThenextstepistoinstallthenecessaryfilesinordertorunApachewithPHPandMySQLonthissystem.Todo,thisfirstrunthecommand“sudoapt-getinstalltasksel”.

Next,telltheservertoinstallaLAMPstackbyrunningthecommand“sudotaskselinstalllamp-server”.

YoushouldnowseetheterminalchangeintoapackageconfigurationapplicationthatdownloadsandinstallstheapplicationsnecessaryinordertorunaLAMPstackontheserver.EventuallyitwillpausetheinstallinordertoaskyoutospecifyaMySQL“root”password.Generatealongandrandompasswordandsaveitoffinasecurelocationsothatyoucanaccessitlater.Youwillknowthatthisinstallationprocessiscompletewhenthepackageconfigurationscreengoesawayandyouarebackattheterminalshell.

ConfiguringApachefortheSimpleRiskAPI1) Runthecommand“a2enmodrewrite”toenablemod_rewriteforApache.2) OpenthefilecontainingtheApachesiteconfiguration.Thisislikelyfoundunder

/etc/apache2/sites-enabled.3) Findthe“Directory”sectionforyoursimplerisksiteandaddalineatthetopfor“AllowOverride

all”.Itshouldlooksomethinglikethis:

Page 4: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

4) RestartApachebyrunningthecommand“serviceapache2restart”.

ObtainingtheSimpleRiskFilesClickontheFireFoxlogointheUnitybarontheleft.OnceFireFoxloads,enterhttps://www.simplerisk.it/intotheURLbartogototheSimpleRisksite.Clickonthe“Download”linkatthetop.

ClicktodownloadandsaveboththeWebBundleandtheInstallerScript.Onceyouhavethefilesdownloaded,youcanclosethebrowser.

InstallingtheWebFilesChangetothenewApachewebrootbyrunningthecommand“cd/var/www/html”.

Page 5: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

Removethedefaultindexpageusingthecommand“sudormindex.html”.Extractthewebbundleintothewebdirectoryusingthecommand“sudotarxvzf~/Downloads/simplerisk-20160612-001.tgz”(orwhateverthemostcurrentversionavailableis).

Thiswillextractthefilesintoadirectoryunderthewebrootnamed“simplerisk”.Youwillneedtoaccessthefileswitha“/simplerisk”appendedtotheURL.Optionally,youcanrunthefollowingcommandstomoveittothewebroot:

• sudomvsimplerisk/*.• sudormdirsimplerisk

Changetheownershippermissionsofthe“simplerisk”directoryandallitssub-directoriestobeownedbythewww-datauser(orwhateveruserApacheisrunningas)usingthecommand“sudochown–Rwww-data:/var/www/html”.

InstallingtheDatabaseExtractthecurrentSimpleRiskinstallertothe“simplerisk”directoryusingthecommand“sudotarxvzf~/Downloads/simplerisk-installer-20160612-001.tgz”(orwhateverthemostcurrentversionavailableis).Thiswillcreateanew“install”directory.Next,inyourwebbrowser,navigatetohttp://localhost/install

Page 6: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

onyourSimpleRiskinstance.Ifeverythingworksasexpected,youwillseeaninstallerpagedesignedtoconfigurethedatabaseforyou.

UndertheDatabaseConnectionInformation,provideitwithyourdatabasehostname,port,username,andpassword.UndertheSimpleRiskInstallationInformation,provideitwiththeSimpleRiskdatabasehostname,databasename,andusernamethatyouwouldlikeSimpleRisktouse.ArandompasswordwillbegeneratedfortheBydefault,itwillgenerateastrong,randomlygenerateddatabasepasswordandwerecommendthatyoukeepthatvalue.UndertheSimpleRiskConfigurationInformation,youhavetheabilitytochoosethedefaultlanguage,sessiontimeouts,defaulttimezone,andotheroptions.Withtheexceptionofthedatabaseschemalanguageandtimezone,werecommendthatyoukeepthedefaultvalues.Whenthescriptcompletes,itwillaskifyouwouldliketoinstallanew/includes/config.phppage.Select“Update”tohaveitautomaticallyupdatedwiththeinstallerinformation.Ifitdoesnothavepermissiontowritetothefile,orcannotfindtheexistingconfig.phpfile,thenitwillprovideyouwiththecontentstoplaceinitinstead.Itisalwaysagoodideatodeletethe“install”directoryonceitisnolongerneededusingthecommand“sudorm–rinstall”.

Page 7: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

LoggingintoSimpleRiskYoushouldnowhaveperformedallofthestepsyouneedtoforSimpleRisktobeupandrunning.Nowisthemomentoftruthwherewehopefullygettoseeifallofyourhardworkpaidoff.YounowneedtopointyourwebbrowsertotheURLwhereSimpleRiskwouldbeinstalled.Ifyoufollowedtheoptionalinstructions,thenitshouldbelocatedathttp://localhost/.Ifyoudidnot,thenitisprobablylocatedathttp://localhost/simplerisk.Youwillknowthatyou’vegottherightpagewhenyouseesomethinglikethis:

Enterusername“admin”andpassword“admin”togetstarted.Then,selectthe“Admin”dropdownatthetoprightandclickon“MyProfile”.

Enteryourcurrentpasswordas“admin”andplaceanewlongandrandomlygeneratedpasswordintothe“NewPassword”and“ConfirmPassword”fields.Thenclick“Submit”.

Page 8: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

Youshouldreceiveamessagesayingthatyourpasswordwasupdatedsuccessfully.Ifso,thenthisisyournew“admin”passwordforSimpleRisk.Ifyoureceivedamessagesayingthat“Thepasswordentereddoesnotadheretothepasswordpolicy”,youcanchangethepolicybyselecting“Configure”fromthemenuatthetopfollowedby“UserManagement”ontheleftside.Youwillseea“PasswordPolicy”sectionatthebottomofthepagewhereyoucanchangethepolicyandtrychangingyourpasswordagain.

RegisteringSimpleRiskThisstepiscompletelyoptional,butwithoutitupgradesofSimpleRiskwillrequiremanualdownloadsofthenewversion,backingupyourconfigurationfile,extractingthenewfiles,restoringtheconfigurationfile,andadatabaseupgrade.Itsoundslikemoreeffortthanitreallyis,butwe’vemadetheprocessfarsimplerifyou’rewillingtotelluswhoyouare.ToregisteryourSimpleRiskinstance,select“Configure”fromthemenuatthetopfollowedby“Register&Upgrade”fromthemenuattheleft.

Enteryourinformationandselectthe“Register”button.ThiswillcreateauniqueInstanceIDforyourSimpleRiskinstanceanddownloadtheUpgradeExtrawhichenablesfunctionalityforone-clickbackupsandupgrades.Ifyourunintoissueswiththeregistrationprocess,werecommendthatyouchecktoensurethatthe“simplerisk”directoryanditssub-directoriesarewriteablebythewww-datauser(orwhateveruserApacheisrunningas).

**ThiscompletesyourinstallationofSimpleRisk**

Page 9: INSTALL SIMPLERISK ON UBUNTU 14.04 (APACHE:MYSQL:PHP) · Install SimpleRisk on Ubuntu 14.04 Introduction SimpleRisk is a simple and free tool to perform risk management activities

SimpleRiskPaidSupportandExtrasEverythingthatyou’veseenuptothispointiscompletelyfreeforyoutoinstallanduse,forever.Thatsaid,weofferanumberofwaysforyoutoenhanceyourSimpleRiskinstancewithevenmorefunctionality.Ifyoulikewhatyousee,andfindituseful,pleaseconsiderpurchasingoneofourinexpensivePaidSupportplansorExtrafunctionalitysothatwecancontinuetoofferyouthebestopensourceriskmanagementtoolavailable.Thankyou!


Top Related