Learn Setup Windows Server 2012 - aliconnect/aliconnect.sdk GitHub Wiki
SQLServerManager12.msc
specs
- File Explorer
- Instellen File Explorer onderdrukken bekende extensies uitzetten
- Mapoties Extensies voor bekende bestandstype verbergen, uitzetten
D:
├📁aliconnect
│ ├📁bu
│ │ ├📁bak
│ │ └📁zip
│ ├📁cert
│ ├📁node_modules
│ └📁webroot
└📁sql
└📁bak
- Setup Google Chrome
- Setup Atom
- Setup GitHub
- [Windows]+[R] Run:
powercfg.cpl
- Select Hoge prestaties
- [Windows]+[R] Run:
wf.msc
- In addition to using SQL Server Configuration Manager to enable TCP/IP connections, you need inbound tcp port and optionally udp port 1434 open at the firewall for SQL Server to accept inbound connections.
- Setup binnenkomende berichten voor
- MSSQL_TCP; Protocol=TCP; Poort=1433,1434;
1. Bereik=IP adressen van
- kantoor Klingelbeekseweg 67
- kantoor Geelkerkenkamp 14a
- klanten airo
- mobiel
- MSSQL_UDP; Protocol=UDP; Poort=1434; 1. Bereik=Elk IP-adres
- WSS; Protocol=TCP; Poort=81,82,444,445; 1. Bereik=Elk IP-adres
- Regels voor binnenkomende verbindingen
- Acties/Nieuwe regel
- Selecteer Poort
- Volgende
Override mode staat standaard op Deny. Deze mode is nodig zodat de Web.config code werkt voor het blokkeren van executabel files in de shared folder.
- [Windows]+[E] Open File Explorer
- Locatie:
%windir%\System32\inetsrv\config\
- Systeem vraagt wellicht of je toegang wilt tot deze map, bevestig dit
- Open: applicationHost.config (met Atom of Notepad)
- Select Atom
- Zoek naar de tekst: handlers
- Wijzig
- Deny naar Allow <section name="handlers" overrideModeDefault="Allow" />
- Zoek naar de tekst: GET,
- Wijzig overal GET,HEAD,POST in GET,HEAD,POST,PUT,DELETE,PATCH
- Sla bestand op [CTRL]+[S]
- Sluit Atom [ALT]+[F4]
- Restart IIS
- Use
\aim\setup\openssl.exe
Of download openssl.exe from https://indy.fulgan.com/SSL/ - [Windows]+[R] Run:
cmd
- Change dir to location certificates
cd \aim\certificates\aliconnect_nl
- Run openssl.exe
- Type command
openssl pkcs12 -export -out cert.pfx -inkey private.key -in cert.crt -certfile CACert.crt
openssl pkcs12 -export -out aliconnect_nl.pfx -inkey aliconnect_nl.key -in aliconnect_nl.crt -certfile aliconnect_nl.ca
- [Windows]+[R] Run:
mmc
- Bestand, Module toevoegen/verwijderen [CTRL]+[M]
- Certificaten
- Toevoegen
- Volgende
- Voltooien
- OK
- Consolebasis, Certificaten, Persoonlijk, Certificaten
- Importeren
- Volgende
- Bladeren
Select rechts onder file format “Personal Information Exchange (*.pfx, *.p12)”
- Wachtwoord {wachtwoordlijst aliconnect_nl.pfx}
- Volgende
- Volgende
- Voltooien
- OK
- [Alt]+[F4] Afsluiten
- Ja
- Opslaan
- Open Internet Information Services (IIS) Manager :
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- On the taskbar, click Server Manager, click Tools, and then click Internet Information Services (IIS) Manager
- If you are using Windows 8 or Windows 8.1:
- Hold down the [Windows] key, press the letter
X
, and then click Control Panel - Click Administrative Tools and then double-click Internet Information Services (IIS) Manager
- If you are using Windows Server 2008 or Windows Server 2008 R2:
- On the taskbar, Start point to Administrative Tools, and then click Internet Information Services (IIS) Manager
- If you are using Windows Vista or Windows 7:
- On the taskbar, Start point to Administrative Tools, and then click Control Panel
- Double-click< Administrative Tools, and then double-click Internet Information Services (IIS) Manager.
- In the Connections pane, expand the server name, expand Sites, and then navigate to the Web site or application where you want to configure default documents.
- In the Home pane, double-click Default Document.
- In the Actions pane, click
- In the Add Default Document dialog box,
type the name of the default document that you want to add in the Name box,
and then click OK.
- If necessary, in the Actions pane, select a default document in the list, and then clickMove Upor Move Down to define the order in which IIS should search through the default document list.
- In the Default Document alert box, click Yes to
decline configuration inheritance from a parent configuration level, or click No or Cancel to
cancel the change in default document order.
- If necessary, click Remove in the Actions pane
to remove any file names that you do not want to use as default documents. Index.php before index.html
Gebruik versie 2.0 (niet 2.1)
- [Windows}+[E]
- Locatie:
\aim\setup\
- Internet
- https://www.iis.net/downloads/microsoft/url-rewrite
- Google IIS url rewrite 2.0 or use url https://www.microsoft.com/en-us/download/details.aspx?id=47337
- Run:
rewrite_amd64.msi
- Complete Setup
- Voer in aliconnect.nl en check server
- Windows-onderdelen in- of uitschakelen
- Volgende
- Kies onderdelen en selecteer SNMP Server
- Volgende
- Run
services.msc
as administrator - Navigate to the properties of the SNMP service.
- Select Automatic as startup type. The service always runs, even after turning your computer off and on again.
- For monitoring purposes, select all of the services on the Agent tab to have all SNMP values available. Let op, eerst service afsluiten, anders zie je de tabs niet
- SNMP-pakketten van een willekeurige host accepteren
- Adjust the security parameters like the community string and the IP/host filter list to your security compliance. For example, add the community namepublicwith READ ONLY rights and accept SNMP packets from at least the address of your monitoring server.
- That's it! You have successfully configured SNMP on your Windows machine.
- [Windows]+[R] Run:
compmgmt.msc
- Folder
Systeemwerkset\Lokale gebruikers
engroepen\Gebruikers
- Right click list: Nieuw gebruiker…
- Gebruikersnaam: Aim
- Volledige naam: Aim
- Beschrijving: Aim Gebruiker
- Wachtwoord: {zie wachtwoordlijst}
- Vink uit: Gebruiker moet wachtwoord bij volgende aanmelding wijzigen
- Vink aan Wachtwoord verloopt nooit.
- Klik Maken
- [Windows]+[R] Run:
inetmgr.exe
- Select folder sites
- Right Click on list panel
- FTP-site toevoegen
- FTP-sitenaam:
aim
- Fysiek pad:
D:\aim
- Volgende
- IP-adres: IP address of server
- SSL: Geen SSL
- Volgend
- Voltooien
- Setup:
WebPlatformInstaller_x64_en-US.msi
- Open notepad als administrator
- Ga naar
c:\Program Files\PHP\{version}
[WebPIChanges]
error_log=C:\Windows\temp\PHP72x64_errors.log
upload_tmp_dir=D:\php\temp
session.save_path=D:\php\session
- maak mappen aan op
d:\php
- Open php.ini
- Wijzig volgende settings
-
upload_max_filesize = 20M
Voeg volgende parametsr toe memory_limit = -1
-
post_max_size = 20M
- [Windows]+[R] Run:
inetmgr.exe
- Selecteer server
- Midden panel, groep Beheer (bovenaan)
- Run Web Platform Installer
- Search PHP 7.3.1
PHP.INI
; Add SameSite
attribute to cookie to help mitigate Cross-Site Request Forgery (CSRF/XSRF)
; Current
valid values are "Lax" or "Strict"
-
https://tools.ietf.org/html/draft-west-first-party-cookies-07
-
session.cookie_samesite = Lax
- Select PHP 7.3.1 (x64)
- Install
- I Accept
- Search PHP v7.3
- Select Microsoft Drivers 5.6 (x64) for PHP v7.3 for SL server in IIS
- Install
-
I Accept
- Machine opnieuw opstarten
- [Windows]+[R] Run:
inetmgr.exe
- Run Web Platform Installer
- Finish
- [Windows]+[R] Run:
inetmgr.exe
- Run Web Platform Installer
- Search PHP 5.6.31
- Select PHP 5.6.31
- Install
- I Accept
- Download MSSQL 2012 Setup files
- Maak gebruiker
aim
- Maak databases en restore databases
- Koppel gebruik aim als eigenaar aan database
Setup MSSQL zodat er een remote verbinding gemaakt kan worden vanuit applicaties.
- [Windows]+[R] Run:
SQLServerManager11.msc
- Locate: SQL Server Network Configuration / Protocols for SQLEXPRESS
- Zet Named Pipes op Enabled
- Zet TCP/IP op Enabled
- Properties TCP/IP
- Set Port=1433
- SQL Server Services
- Open SQL Server Browser
- Set Start mode op automatic
- Start SQL Server Browser
- Ga naar SQL Server Configuratie Manager
- TCP Dynamic Ports veranderen in 1433
-
TCP Port veranderen in 1433
- Browser Chrome URL https://nodejs.org/en/
- Download versie 10.15.3 LTS
- Setup NodeJS
Command prompt config set prefix c:\aim\www\aim\v1\api\node
- Cmd
Cd \aim\wss
Npm init
Voer gegevens in
Npm install mssql
Npm install ws
Cd \aim\wss
Npm init
Voer gegevens in
Npm install mssql
Npm install mosca –save
Npm audit fix
- http://www.hivemq.com/demos/websocket-client/
- Host:aliconnect.nl, Port:1884
- Npm install snmp-native
- Npm install jsmodbus
- Npm install mssql
- Npm install websocket
- [Windows]+[E] Explorer
- Locatie:
\aim\wss\
- Run:
https.bat
Web Socket Server SSL Certificaat
- Start browser op PC
- URL https://www.digicert.com/help/
- Voer in wss.aliconnect.nl:444 en check server
- Open browser
- URL https://aliconnect.nl/aim/v1/