Skip to content

Instantly share code, notes, and snippets.

@RatserX
RatserX / centos-rhel-nginx-fastcgi-php.md
Last active November 27, 2020 23:14
Setup NGINX on CentOS/RHEL for handling Let's Encrypt wildcard SSL certificates

Setup NGINX on CentOS/RHEL for handling Let's Encrypt wildcard SSL certificates

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

/usr/bin/certbot certonly --agree-tos --domains domain.com,sub1.domain.com,sub2.domain.com --nginx

/usr/bin/certbot certonly --agree-tos --domains domain.com,sub1.domain.com,sub2.domain.com,sub3.domain.com --expand --nginx

/usr/bin/certbot certonly --agree-tos --dns-cloudflare --dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini --domains domain.com,*.domain.com --email [email protected] --installer nginx --no-eff-email

@RatserX
RatserX / centos-rhel-log-messages.md
Last active June 7, 2020 08:38
How to stop audit log entries written to system logs on CentOS/RHEL
@RatserX
RatserX / windows-remote-desktop-connection.md
Last active April 23, 2020 16:58
Remote Desktop Connection problems and solutions on Windows 10 v1809 and later

Remote Desktop Connection problems and solutions on Windows 10 v1809 and later

Step 1 - Enter Regedit as administrator

Go to the following regedit path.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Step 2 - Enter Regedit as administrator

Add a DWORD key called SelectTransport and set the value to 1. Restart Windows afterwards for the change to take effect.

@RatserX
RatserX / centos-rhel-nginx-aspnetcore.md
Last active August 12, 2023 13:36
Setup NGINX and ASP.NET Core on CentOS/RHEL for hosting sites on different ports and ASP.NET Core versions
@RatserX
RatserX / centos-rhel-nginx-fastcgi-php.md
Last active December 23, 2019 23:08
Setup NGINX, FastCGI and PHP on CentOS/RHEL for hosting sites on different ports and PHP versions
@RatserX
RatserX / debian-ubuntu-php-yaz.md
Last active November 16, 2023 16:40
Setup PHP YAZ on Debian/Ubuntu using PECL

Setup PHP YAZ on Debian/Ubuntu using PECL

Prerequisites

Update the installed packages.

apt update

Install the Ondřej PHP repository.

apt install software-properties-commonsudo

add-apt-repository ppa:ondrej/php

@RatserX
RatserX / debian-ubuntu-php-sqlsrv.md
Last active February 6, 2023 11:33
Setup the Microsoft ODBC Driver for SQL Server on Debian/Ubuntu with different PHP versions

Setup the Microsoft ODBC Driver for SQL Server on Debian/Ubuntu with different PHP versions

Prerequisites

Update the installed packages.

apt update

Install the Ondřej PHP repository.

apt install software-properties-commonsudo

add-apt-repository ppa:ondrej/php

@RatserX
RatserX / debian-ubuntu-apache-fastcgi-php.md
Last active October 14, 2022 07:04
Setup Apache, FastCGI and PHP on Debian/Ubuntu for hosting sites on different ports and PHP versions

Setup Apache, FastCGI and PHP on Debian/Ubuntu for hosting sites on different ports and PHP versions

Prerequisites

Update the installed packages.

apt update

Install the Ondřej PHP repository.

apt install software-properties-commonsudo

add-apt-repository ppa:ondrej/php

@RatserX
RatserX / centos-rhel-php-yaz.md
Last active August 10, 2019 07:18
Setup PHP YAZ on CentOS/RHEL using PECL
@RatserX
RatserX / centos-rhel-php-sqlsrv.md
Last active December 20, 2021 20:04
Setup the Microsoft ODBC Driver for SQL Server on CentOS/RHEL with different PHP versions