Learn Setup Windows Server Aliconnect - aliconnect/aliconnect.sdk GitHub Wiki
Setup Strato Server
STRATO ServerCloud Panel
Netwerk
1. Firewall-beleid
Toelaten, Alle, TCP: 20,21,22,81,82,444,445,1433,1434
Toelaten, Alle, UDP: 22,1434
Wacht op Staus, Wordt geconfigureerd > Actief
Setup Server
Windows+R Open: servermanager
Dashboard > Add roles and features
Before You Begin
1. [ Next > ]
Installation Type
1. [x] Role based or feature-based installation
1. [ Next > ]
Server Selection
1. [x] Select a server from the server pool
1. [ Next > ]
Server Roles
1. [x] Web Server (IIS)
[ Add Features ]
1. [ Next > ]
Features
1. [ Next > ]
Web Server Role (IIS)
1. Role Services
Web Server
Application Development
1. [x] CGI
FTP Server
[ Next > ]
Confirmation
1. [ Install ]
OpenSSH Server
Setup SSH server on server
See Get started with Opne SSL on windows
Start Manage optional features
Add feature OpenSSH Server
Waint until service is installed, this can take saveral minutes.
Microsoft Web Platform Installer 5.1
PHP 7.4.13 (x64) [ Add ]
Microsoft Drivers 5.8 (x64) fro PHP v7.4 for SQL Server in IIS [ Add ]
URL Rewrite 2.1 [ Add ]
[ Install ]
[ I Accept ]
[ Finsh ]
[ I Accept ]
[ Exit ]
Add Windows user aim
Windows+R Open: compmgmt.msc
Computer Management (Local) > System Tools > Local Users and Groups > Users
Actions > Users > More actions > New User...
User name: Aim
Full name: Aim FTP User
Description: Aim FTP User
Password: ***
Confirm password: ***
User must change password at next logon
User cannot change password
Password never expires
Account is disabled
[ Create ]
[ Close ]
Setup Windows Firewall
Windows+R Run: wf.msc
Windows Defender Firewall > Inboud Rules
Add Rule TCP AIM Server
Actions > New Rule...
Rule Type
Port
[ Next > ]
Protocol and Ports
TCP
Specific local ports : 20,21,81,82,444,445,1433,1434
[ Next > ]
Action
Allow the connection
[ Next > ]
Profile
Domain
Private
Public
[ Next > ]
Name
Name: TCP AIM Server
[ Finish ]
Add Rule UDP AIM Server
Actions > New Rule...
Rule Type
Port
[ Next > ]
Protocol and Ports
UDP
Specific local ports : 1433,1434
[ Next > ]
Action
Allow the connection
[ Next > ]
Profile
Domain
Private
Public
[ Next > ]
Name
Name: UDP AIM Server
[ Finish ]
Setup Atom
https://atom.io/
[ Download ]
AtomSetup-x64.exe > Open file
Add folders: d:\aliconnect
Setup config.json
Run Atom
📁 aliconnect > 📁 Config
New File [A]
Enter the path for the new file. config\.config.yaml
add content
Setup Microsoft SQL Server
https://www.microsoft.com/nl-nl/sql-server/sql-server-downloads
Express [ Download nu > ]
SQL2019-SSEI-Expr.exe > Open file
Express Edition
1. [ Custom ]
MEDIA LOCATION *: D:\sqlmedia
[ Install ]
Downloading install packages...
SQL Server Installation Center
1. Installation
New SQL Server stand-alone installation ...
License Terms
1. [x] I accept the license terms ...
1. [ Next > ]
Global Rules
Product Updates
Install Setup Files
Install Rules
Feature Selection
1. [ Next > ]
Feature Rules
Instance Configuration
1. [x] Default instance
1. Instance ID: MSSQLSERVER
1. [ Next > ]
Java Install Location
1. [ Next > ]
Server Configuration
1. [ Next > ]
Database Engine Configuration
1. Server Configuration
Mixed Mode (SQL Server authentication and Windows authentication)
Enter password: ***
Confirm password: ***
1. Data Directories
Data root directory: D:\sql\data
User database directory: D:\sql\data
User database log directory: D:\sql\data
Backup directory: D:\sql\bak
1. TempDB
Data directories: D:\sql\data
Log directoriy: D:\sql\data
1. [ Next > ]
Consent to install Microsoft R Open
1. [ Accept ]
1. [ Next > ]
Consent to install MPython
1. [ Accept ]
1. [ Next > ]
Offline Installation of Microso...
Feature Configuration Rules
Installation Progress
1. [ Next > ]
Complete
1. [ Close ]
Setup Node JS
Start Edge
https://nodejs.org/en/
[ 18.12.1.LTS Recommended For Most Users ]
node-v18.12.1-x64.msi > Open file
Welcome
1. [ Next ]
End-User License Agreement
1. [x] I accept ...
1. [ Next ]
Destination folder
1. C:\Program Files\nodejs\
1. [ Next ]
Custom Setup
1. [ Next ]
Tools for Native Modules
1. [ Next ]
Ready to install Node.js
1. [ Install ]
Completed
1. [ Finish ]
Setup Composer
Start Edge
https://getcomposer.org/download/
Composer-Setup.exe
Composer-Setup.exe > Open file
Select install mode
1. [ Install for all users ]
Installation options
1. [ Next ]
Settings Check
1. Choose the command-line... C:\Program Files\php\v7.4\php.exe
1. [x] Add this PHP to your path?
1. [ Next ]
Proxy Settings
1. [ Next ]
Ready to install
1. [ Install ]
Information
1. [ Next ]
Completing Composer Setup
1. [ Finish ]
Voeg toe Gebruikers
aan beveiliging met rechten lezen enz???
Setup PHP Yaml
Start Edge
https://pecl.php.net/package/yaml/2.0.4/windows
7.4 Non Thread Safe (NTS) x64
7.4 Non Thread Safe (NTS) x64 > Open file
Copy php_yaml.dll
, php_yaml.pdb
Paste into C:\Program Files\PHP\v7.4\ext
Windows+R Open: notepad
Ctrl+O Open: C:\Program Files\PHP\v7.4\php.ini
Add extension YAML
[ExtensionList]
extension=php_yaml.dll
Add Logging
[AIM Changes]
error_log=D:\aliconnect\logs\php_errors.log
upload_tmp_dir=D:\aliconnect\temp\php
session.save_path=D:\aliconnect\temp\php\session
Setup folders
Windows+R Run: cmd
Run command's
d:
md \sql
md \sql\data
md \sql\bak
md \aliconnect
md \aliconnect\bu
md \aliconnect\config
md \aliconnect\config\cert
md \aliconnect\logfiles
md \aliconnect\public
cd \aliconnect
npm init
npm install @aliconnect/sdk
composer require phpmailer/phpmailer
Setup Cert folder
Copy Cert folder van local d:\aliconnect\cert
naar Server d:\aliconnect\cert
Create Local SSL Server Certificate
The SSL certificate can only be used on the computer where it is created. To recreate the certificate we can export and import it with the help of openssl.
Start d:\aliconnect\config\cert\this-server.pfx.create.bat
Enter Export Password: ***
Verifying - Enter Export Password: ***
Press any key to continue . . .
Setup IIS
Windows+R Run: inetmgr.exe
Import Server SSL Certificate
Connections > XXXXXX (XXXXXX\Administrator)
XXXXXX Home > IIS > Server Certificates > Actions > Open Feature
1. Server Certificates
1. Actions > Import...
Import Certificate
Certificate file (.pfx): d:\aliconnect\config\cert\this-server.pfx
Password: ***
Select Certificate Store: Personal
Allow this certificate to be exported
[ OK ]
Setup Web Server
Connections > XXXXXX (XXXXXX\Administrator)
> Sites > Default Web Site
Default Web Site Home > Actions > Edit Site > Basic Settings...
1. Edit Site
Physical path: d:\aliconnect\public
[ Connect as... ]
Connect As
1. [x] Specific user: aim
1. [ Set ]
Set Credentials
User name: aim
Password: ********
Confirm password: ********
[ OK ]
1. [ OK ]
[ Test Settings... ]
[ OK ]
Setup FTP Server
Connections > SERVER (SERVER\Administrator)
> Sites
Sites > Actions > Add FTP Site...
1. Site Informatie
FTP site name: FTP
Physical path: d:\aliconnect
[ Next ]
1. Binding and SSL Settings
Binding:
IP Address: All Unassigned
Port: 21
Start FTP site automatically
SSL
Require SSL
SSL Certificate: *.aliconnect.nl
[ Next ]
1. Authentication and Authorization Information
Authentication
1. [ ] Anonymous
1. [x] Basic
Authorization
1. Allow access to > Specific Users: aim
1. Permisions:
Read
Write
[ Finish ]
Connections > SERVER (SERVER\Administrator)
> Sites > FTP
FTP Home > FTP > FTP Logging > Actions > Open Feature
1. FTP Logging
Directory: d:\aliconnect\logfiles
Actions > Apply
FTP Home > FTP > FTP Authorization Rules > Actions > Open Feature
1. FTP Authorization Rules
Edit Allow Authorization Rule
Specific users: aim
Permissions:
1. [x] Read
1. [x] Write
FTP Home > FTP > FTP Authorization Rules > Actions > Open Feature
1. FTP SSL Settings
SSL Policy
Allow SSL connections
Actions > Apply
Test FTP m.b.v FileZilla
1. Algemeen
Protocol: FTP - File Transfer Protocol
Host: 000.000.000.000
Versleuteling: Gebruik platte FTP (onveilig)
Inlogtype: Normaal
Gebruiker: aim
Wachtwoord: ***
Schrijf rechten PHP op aliconnect/config/client
folder
Open explorere.exe
This PC > Data (D:) > 📁 aliconnect > 📁 config > 📁 client
Actions > Properties > Security
[ Edit... ]
[ Add... ]
Enter the object names to select (examples): IUSR
[ OK ]
Permissions for Aim > Modify > [x] Allow
[ OK ]
[ OK ]
Windows PC
Server setup
Turn Windows features on or off
Windows+R Open: appwiz.cpl
Control Panel Home > Turn Windows features on or off
1. [x] Internet Information Services