sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
sudo passwd ec2-user
deb http://deb.debian.org/debian/ bookworm main non-free-firmware | |
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware | |
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware | |
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware | |
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware | |
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware | |
deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/debian/2001 bookworm main |
#! /bin/sh | |
# | |
# Copyright (c) 2013 Mike Miller <[email protected]> | |
# | |
# Permission to use, copy, modify, and distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
//maps.googleapis.com | |
//maps.gstatic.com | |
//fonts.googleapis.com | |
//fonts.gstatic.com | |
//ajax.googleapis.com | |
//apis.google.com | |
//www.google.com | |
//www.googletagmanager.com | |
//google-analytics.com | |
//www.google-analytics.com |
sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
sudo passwd ec2-user
sudo apt-get install -y build-essential libjpeg-progs liblcms2-dev libpng-dev libmagickcore-6.q16-3-extra
sudo apt-get install -y jpegoptim optipng pngquant pngtools gifsicle webp && sudo npm install -g svgo
:/usr/bin/jpegoptim:/usr/bin/optipng:/usr/bin/pngquant:/usr/bin/svgo:/usr/bin/gifsicle:/usr/bin/cwebp
define('WP_SITEURL', '/blog');
define('WP_HOME', '/blog');
$_SERVER['REQUEST_URI'] = str_replace("/wp-admin/", "/blog/wp-admin/", $_SERVER['REQUEST_URI']);
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
Follow https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04 up to step 3
Install WP https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04
Create wordpress.conf in /etc/nginx/sites-avaiable:
server {
listen 8080;
listen [::]:8080;
// Define WordPress URLS | |
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/'); | |
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/'); | |
// HTTPS Forward (If orgin is HTTP Only) | |
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') | |
$_SERVER['HTTPS'] = 'on'; | |
// Dynamic Host Name | |
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { |
## Install Tools | |
sudo apt install autoconf libpcre3-dev -y | |
## Define Module Name and Version | |
MODULE_NAME="apcu" | |
MODULE_VERSION="5.1.21" | |
## Download and Unzip Extensions | |
wget https://pecl.php.net/get/$MODULE_NAME-$MODULE_VERSION.tgz | |
tar -zxvf $MODULE_NAME-$MODULE_VERSION.tgz |
Section: AUTH | |
zeptomail_login: | |
driver = plaintext | |
public_name = LOGIN | |
client_send = : emailapikey : XXAAAFAFAF | |
Section: POSTMAILCOUNT |