As the project evaluated – we decided to add one more component to our puzzle -www server on Windows laptop. On this server there will be simple php application run – just to display „Hall of fame” with all of the thiefts caught in last 30 mins and on the other side we will have some statistics displayed like: how many records were put in to DB and how fast it was, how much data from other sensors were inserted (maybe simple analysis of this data). PHP aplication will be written using CodeIgniter – as it is the best and my favourite PHP framework.
Unfortunately it turned out that, having only 4GB of RAM on this computer, is not the best configuration and the server is to weak to be able to run at the same time:
- Xampp Server
So after short discussion we bought next 8GB of RAM memory and now everything works as expected.
We installled Xampp server acc. to this instruction:
- Open the XAMPP website. Go to https://www.apachefriends.org/index.html in your computer’s web browser.
- Click „XAMPP for Windows„. It’s a grey button near the bottom of the page.Depending on your browser, you may first have to select a save location or verify the download.
- Double-click the downloaded file. This file should be named something like xampp-win32-7.2.4-0-VC15-installer
- Then Windows installer will appear; in next window just choose components, which should be installed (I chose only Apache and python)
and after several ‚Nexts’ you have installed Xampp server. Now it is time to start WWW server – you can do it like that:
Start XAMPP from its installation point. If you need to open the XAMPP Control Panel in the future, you can do so by opening the folder in which you installed XAMPP, right-clicking the orange-and-white xampp-control icon, clicking Run as administrator, and clicking Yes when prompted.
- When you do this, you’ll see red X marks to the left of each server type (e.g., „Apache”). Clicking one of these will prompt you to click Yes if you want to install the server type’s software on your computer.
Resolve issues with Apache refusing to run. On some Windows 10 computers, Apache won’t run due to a „blocked port”. This can happen for a couple of reasons, but there’s a relatively easy fix:
- Click Config to the right of the „Apache” heading.
- Click Apache (httpd.conf) in the menu.
- Scroll down to the „Listen 80” section (you can press Ctrl+F and type in listen 80 to find it faster).
- Replace 80 with any open port (e.g., 81 or 9080).
- Press Ctrl+S to save the changes, then exit the text editor.
- Restart XAMPP by clicking Quit and then re-opening it in administrator mode from its folder.