# Installation PowerOfDark CMS website

- [Installation PowerOfDark CMS website](#installation-powerofdark-cms-website)
  - [Windows (IIS) installation](#windows-iis-installation)

## Windows (IIS) installation

> A package with php configured + cache provided

1. Install "PHP" thread unsafe at `C:\PHP`
   - LATEST: https://windows.php.net/download#php-8.3
   - ARCHIVE: https://windows.php.net/downloads/releases/archives/
2. Configure PHP like normal installation process
3. Paste to `C:\PHP\ext` the cache module
4. Create the folder `C:\PHP\session` and give full permissions to `IIS_IUSRS`
5. Install IIS:
   1.  Add administration
   2.  Web server
   3.  Development tools -> CGI
6. Install URL rewrite tool `https://www.iis.net/downloads/microsoft/url-rewrite`
7. Configure IIS
   1. Add  the `Handler mapping`
   2. Add the `Default Document` -> `index.php`
8. With the `URL Rewrite` convert the `.htaccess` file to `web.config`
9.  Create the `wwwLogs/payments` folder in the parent folder and assign write permissions
10. Create `C:\inetpub\temp\sessionfiles` and grant permissions for the user `IIS_IUSRS`
11. Enable logs for php:
    1.  php.ini:
        1.  error_log = C:\inetpub\logs
        2.  display_errors = On
    2.  IIS:
        1.  Default Web Site -> Configuration Editor
        2.  Sections: system.webServer/httpErrors
            1.  defaultResponseMode: FIle
            2.  errorMode: detailed
            3.  existingResponse: PassThrough
12. (STREAM) Give read permissions to the `Database` folder for the user `IIS_IUSRS`
