Learn Setup Windows Server Aliconnect copy - aliconnect/aliconnect.sdk GitHub Wiki

  1. Windows User Aim, Create windows user
  2. IIS FTP Server, Setup FTP server

Windows configureren

  1. Windows+R Open: appwiz.cpl
  2. Control Panel Home > Turn Windows features on or off

Folders

  1. Windows+E
  2. Create directory structure
> Deze PC
  > Data (D:)
    📁 aliconnect
      📁 bu
        📁 zip
        🗋 7za.exe
      📁 config
        📁 aliconnect.nl
          📁 forms
            📁 config
              🗋 aliconnect.nl.yaml
        📁 cert
          🗋 aliconnect.ca
          🗋 aliconnect.cer
          🗋 aliconnect.key
          🗋 openssl...
        📁 docs
        📁 logs
          📁 logfiles
        📁 node_modules
          📁 @aliconnect
        📁 public
          📁 assets
            📁 css
            📁 font
            📁 img
            📁 js
            📁 media
          🗋 404.html
          🗋 manifest.json
          🗋 nav-left.md
          🗋 nav-top.md
          🗋 footer.md
          🗋 Home.md
          🗋 web.config
        📁 src
          📁 aliconnect
            📁 auth
              🗋 server.php
            📁 data
              🗋 server.php
            📁 mailer
              🗋 mailer.html
            🗋 mailer.php
          🗋 aliconnect.php
        📁 translations
          🗋 nl.yaml
        📁 vendor
          📁 aliconnect
        🗋 composer.json
        🗋 package.json
  1. This PC > Data (D:) > 📁 aliconnect
    1. Actions > Properties > Security
    2. Edit...
    3. Add...
    4. Enter the object names to select (examples): aim
    5. OK
    6. Permissions for Aim > Modify > [x] Allow
    7. OK
    8. OK
  2. This PC > Data (D:) > aliconnect > 📁 public
    1. Actions > Properties > Security
    2. Edit...
    3. Add...
    4. Enter the object names to select (examples): IUSR
    5. OK
    6. Permissions for Aim > Modify > [x] Allow
    7. OK
    8. OK
  3. This PC > Data (D:) > aliconnect > 📁 webroot
    1. Actions > Properties > Security
    2. Edit...
    3. Add...
    4. Enter the object names to select (examples): IUSR
    5. OK
    6. Permissions for Aim > Modify > [x] Allow
    7. OK
    8. OK

IIS

Certificate

IIS Renew Server SSL Certificate

Onderstaande werkt niet. Het was noodzakelijk om [IIS Import Server SSL Certificate](#IIS Import Server SSL Certificate) uit te voeren.

  1. Windows+R Run: inetmgr.exe > Internet Information Services (IIS) Manager
  2. Connections > SERVER (SERVER\Administrator)
  3. IIS > Server Certificates > Open Feature
  4. Select certificate
  5. Actions > Renew...
  6. Complete certificate renewal request
  7. File name ...: \aliconnect\config\cert\__aliconnect_nl.cer
  8. Select a certificate store...: Personal

Setup Default Web Site

  1. Connections > SERVER (SERVER\Administrator) > Sites > Default Web Site
  2. Rename webroot
  3. Actions > Edit Site > Basic Settings...
    • Edit Site
      1. Physical path: D:\aliconnect\webroot
  4. Connect as...
    • Connect as
      1. Specific user: Set
      2. Set Credentials
        1. User name: Aim
        2. Password: ********
        3. Confirm password: ********
  5. OK
  6. OK
  7. Actions > Edit Site > Bindings...
    • Site Bindings
  8. Add
    • Add/Edit Site Bindings
      1. Type: https
      2. IP address: All Unassigned
      3. Port: 443
      4. Host name: ``
      5. SSL certificate: *.aliconnect.nl
  9. OK
  10. Close

Setup Handler Mappings

  1. Connections > SERVER (SERVER\Administrator)
  2. IIS > Handler Mappings
  3. PHP_via_FastCGI1 > Actions > Edit...
  4. Edit Module Mapping
    1. [ Request Restrictions... ]
    2. Verbs
    1. All verbs
    2. [ OK ]
    3. Executable (optional): "C:\Program Files\PHP\v...\php-cgi.exe" (let op quotes)
    4. [ OK ]
    5. Edit Module Mapping
      1. Do you want to ....
      2. [ Yes ]

Setup FTP Site

  1. Connections > SERVER (SERVER\Administrator) > Sites

  2. Actions > Add FTP Site

  3. Site Informatie

    1. FTP site name: ftp.aliconnect.nl
    2. Physical path: D:\aliconnect
  4. Next

  5. Binding and SSL Settings

    • Binding:
      • IP Address: All Unassigned
      • Port: 21
    • Start FTP site automatically
    • SSL
      • SSL Toestaan
      • SSL Certificate: *.aliconnect.nl
  6. Next

  7. Authentication and Authorization Information

    • Authentication
      • Anonymous
      • Basic
    • Authorization
      • Allow access to > Specific Users: aim
      • Permisions:
        • Read
        • Write
  8. Complete

  9. Actions > Edit Site > Basic Settings...

    1. Edit Site
      • Physical path: D:\aliconnect\webroot
    2. Connect as...
      1. Connect As
        • Specific user: aim
        • Set...
          1. Set Credentials
            • User name: aim
            • Password: ********
            • Confirm password: ********
    3. OK
    4. Aim Home > FTP > FTP Logging
      • Directory: D:\aliconnect\logs\logfiles
    5. Aim Home > FTP > FTP Authorization Rules
      • Mode: Allow, Users: Aim, Permissions: Read, Write

IIS Web Platform

  1. Install 5.1

    1. https://www.microsoft.com/web/downloads/platform.aspx
    2. Install this extension
    3. Next
    4. Finish
  2. Install URl Rewrite Werkt via WebPlatform Installer niet dus:

  3. Ga naar https://www.iis.net/downloads/microsoft/url-rewrite

  4. [ Install this extension ]

  5. Run downloaded file, accept and install

Task Scheduler

  1. Windows+R Run: taskschd.msc
  2. TaskScheduler (Local) > Task Scheduler Library
  3. Actions > Create Basic Task ...
    • Create a Basic Task
      1. Name: Aliconnect backup
      2. Next >
    • Task Trigger
      1. Daily
      2. Next >
    • Daily
      1. Start: xx/xx/xxxx 01:00:00
      2. Recur every: 1
      3. Next >
    • Action
      1. Start a program
      2. Next >
    • Start a program
      1. Program/script: D:\aliconnect\bu\backup.bat
      2. Next >
    • Summary
      1. Finish

SQL Server Configuration

  1. Start: Sql Server Configuration Manager (Local)
  2. Sql Server Configuration Manager (Local) > SQL Server Network Configuration > Protocols for MSSQLSERVER
    • Named Pipes > Enable
      • OK
    • TCP/IP > Enable
      • OK
    • TCP/IP > Properties
      • IP Addresses
      • IPAll
        • TCP Dynamic Ports: 1433
      • OK
  3. Sql Server Configuration Manager (Local) > SQL Server Services
    • SQL Server Browser > Properties
      • Service
        • Start Mode: Automatic
      • Advanced
        • Dump Directory: D:\mssql\data\log
      • OK
    • SQL Server Browser > Start
    • SQL Server (MSSQLSERVER) > Restart

SQL Server Management Studio

  1. https://aka.ms/ssmsfullsetup
  2. SSMS-Setup-ENU.exe
  3. Install

AIM Server

  1. Windows+R Open: cmd
    D:
    cd \aliconnect
    composer update
    npm install
    
    rd \aliconnect\vendor\aliconnect\sdk
    
    mklink /J \aliconnect\vendor\aliconnect\sdk \aliconnect\public\[email protected]
    composer update
    cd \aliconnect\public\[email protected]
    npm link
    cd \aliconnect
    npm link @aliconnnect/sdk
    

SQL Server

  1. Start: Microsoft SQL Server Management Studio
  2. Connect to database windows cridentials
  3. MSQLSERVER > Security > Logins > New Login...
    • Login name: aim
    • SQL Server Authentication
      • Password: ***
      • Confirm password: ***
    • Enforce password policy
    • Default database: aim1

Folder

📁 aliconnect
    📁 aliconnect
📁 aliconnect
    📁 aliconnect
        🗋 jkhlkjhlkjh

IIS IP Block

  • Roles > Web Server (IIS) > Web Server > Security > [x] IP and Domain Restrictions

PHP 8.1

  • download PHP manager latest
  • https://github.com/phpmanager/phpmanager/releases
  • start IIS Manager IIS If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP. VS16 x64 Non Thread Safe (2022-Aug-30 18:46:44)

Instellen afschermen folder op IP adres

<?xml version="1.0"?>
<configuration>
   <system.webServer>
      <security>
        <ipSecurity allowUnlisted="false">
           <clear/>
           <add ipAddress="999.999.999.999" allowed="true"/>
        </ipSecurity>
      </security>
   </system.webServer>
</configuration>
  1. In IIS, click on the root server
  2. Double click Feature Delegation (under management)
  3. Scroll down to IPv4 Address and Domain Restrictions
  4. Change the delegation to Read/Write (in my case it was Read Only, which was the issue)
⚠️ **GitHub.com Fallback** ⚠️