Tech Areas
All Posts
Bundle install
Error: [!] There was an error parsing `Gemfile`: syntax error, unexpected string literal, expecting `do’ or ‘{‘ or ‘(‘ – gem ‘addressable’, ‘2.2.6’ ^ /home/ots/onetimesecret/Gemfile:7: syntax error, unexpected ‘,’,…
Bundle install gets killed
It’s because you are running out of memory. Try adding more swap: www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04. Or bump up to a bigger droplet. Ref: www.digitalocean.com/community/questions/bundle-install-gets-killed
Check and fix Github SSH access
*Check access to Github* You should verify your connection by typing: |$ ssh -T git@github.com > Hi USERNAME! You’ve successfully authenticated…| Ref: docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey?platform=linux *Generating a new SSH key and adding…
FTP-FIX FOR ISPCONFIG3
How to set PassivePortRange and PassiveIP in pure-ftpd on Debian and Ubuntu Linux byTill Brehm If you run a firewall on your Linux server and want to use passive FTP…
How To Add Swap Space on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
How to Downgrade Your WordPress Site
*How to Downgrade Your WordPress Site (For Troubleshooting Plugin and Theme Issues)* If you’re uncomfortable with FTP and the idea of deleting core files, there is a plugin available for…
How To Install and Use PostgreSQL on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-20-04
How To Install Git on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-20-04
How To Install Nginx on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04#step-5-%E2%80%93-setting-up-server-blocks-(recommended)
How To Install Node.js on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04#option-2-%E2%80%94-installing-node-js-with-apt-using-a-nodesource-ppa
How To Install Ruby on Rails with rbenv on Ubuntu 20.04
How To Install Ruby on Rails with rbenv on Ubuntu 20.04: Ref: www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-20-04 Rails versions: rubygems.org/gems/rails/versions/6.0.2
How To Install the Apache Web Server on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04#step-5-%E2%80%94-setting-up-virtual-hosts-(recommended)
How To Secure Apache with Let’s Encrypt on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04
How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04
How To Set Up a Firewall with UFW on Ubuntu 18.04
www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04
How to Set Up SSH Keys on Ubuntu 20.04
www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04
HTML Colors
Blue footer background color: www.computerhope.com/cgi-bin/htmlcolor.pl?c=00008B
HTML/JS: Copyright Year
NAME, Copyright © <script type=”text/javascript”>var year = new Date();document.write(year.getFullYear()); </script
Initial Server Setup (Ubuntu)
Initial Server Setup with Ubuntu 20.04 Ref: www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04 How To Install and Use Docker on Ubuntu 20.04 Ref: www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04 How To Install and Use Docker Compose on Ubuntu 20.04 Ref:…
Initial Server Setup with Ubuntu 20.04
www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04
Installing Docker
www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
Installing Docker Compose
www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04
Invalid signatures
Err:1 download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_18.04 InRelease The following signatures were invalid: … FULL ERROR TEXT: Err:1 download.opensuse.org/repositories/isv:/ownCloud:/server:/10/Ubuntu_18.04 InRelease The following signatures were invalid: EXPKEYSIG 2345JHGFD234R5T isv:ownCloud OBS Project Fetched 254 kB in 1s…
Let’s Encrypt with Nginx
How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04 Ref: www.rosehosting.com/blog/how-to-secure-nginx-with-lets-encrypt-on-ubuntu-20-04/
Mattermost Links
Mattermost services ports docs.mattermost.com/getting-started/architecture-overview.html Configuration settings docs.mattermost.com/configure/configuration-settings.html MySQL installation troubleshooting docs.mattermost.com/install/trouble_mysql.html Troubleshooting Mattermost issues docs.mattermost.com/install/troubleshooting.html Deploy Mattermost docs.mattermost.com/guides/deployment.html docs.mattermost.com/install/installing-ubuntu-2004-LTS.html Configure Mattermost server docs.mattermost.com/install/installing-ubuntu-1804-LTS.html#install-ubuntu-server-18-04-lts www.focalboard.com/download/mattermost/ Postgresql connection problem solution (part 2)…
Node.js versions / Installation instructions
github.com/nodesource/distributions/blob/master/README.md#debinstall
Open ports
www.digitalocean.com/community/questions/how-do-i-open-ports-on-an-ubuntu-server www.cyberciti.biz/faq/ufw-allow-incoming-ssh-connections-from-a-specific-ip-address-subnet-on-ubuntu-debian/ Initial Server Setup with Ubuntu 20.04 www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04 Install PostgreSQL on Ubuntu 20.04 www.digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-20-04-quickstart Find files via CLI vitux.com/how-to-find-files-on-the-ubuntu-command-line
Passbolt Setup
1. Create the droplet in Digital Ocean Ref: www.passbolt.com/docs/hosting/install/ce/digital-ocean/ 2. Setup DNS in nameserver 3. Configure passbolt in CLI Ref: www.passbolt.com/docs/hosting/install/ce/ubuntu/ 4. Configure passbolt in browser Ref: www.passbolt.com/docs/hosting/install/ce/digital-ocean/ Ref: www.passbolt.com/docs/hosting/install/ce/ubuntu/…
PHPMailer
Links: www.cloudways.com/blog/send-emails-in-php-using-phpmailer/ www.wikihow.com/Install-PHPMailer github.com/PHPMailer/PHPMailer github.com/PHPMailer/PHPMailer/blob/master/README.md help.dreamhost.com/hc/en-us/articles/360031174411-PHPMailer-Installing-on-a-shared-server Encoding (lang): stackoverflow.com/questions/374425/convert-utf8-characters-to-iso-88591-and-back-in-php www.php.net/manual/en/function.mb-convert-encoding.php
Python vs Python3
askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3
RENAME WP CHILD THEME
You can just rename the child folder alone. Assuming this is the currently active theme, activate some other theme while you rename the folder, then reactivate the child afterwards. Changing…
Repo is missing a Release file
E: The repository ‘http://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04 Release’ no longer has a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8)…
To fix installation problems with Ruby on Ubuntu 20.04
To fix installation problems with Ruby on Ubuntu 20.04 type: |RUBY_CONFIGURE_OPTS=–disable-install-doc rbenv install 3.1.2 –verbose | Ref: www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-20-04
To see all your sources.list entries
find /etc/apt -name ‘*.list’ -exec bash -c ‘echo -e “\n$1\n”; cat -n “$1″‘ _ ‘{}’ \;
Upgrade Docker Compose
compose_version=$(curl api.github.com/repos/docker/compose/releases/latest | jq .name -r) output=’/usr/local/bin/docker-compose’ curl -L github.com/docker/compose/releases/download/$compose_version/docker-compose-$(uname -s)-$(uname -m) -o $output chmod +x $output echo $(docker-compose –version) stackoverflow.com/questions/49839028/how-to-upgrade-docker-compose-to-latest-version
Upgrade MariaDB
URL: mariadb.com/kb/en/installing-mariadb-deb-files/#updating-the-mariadb-apt-repository-to-a-new-major-release Ref: mariadb.com/kb/en/upgrading-from-mariadb-103-to-mariadb-104/
Where is the theme’s custom CSS?
*Where is the theme’s custom CSS stored?* The custom CSS is stored in the the site’s database, in the wp_posts table. The custom CSS is the content of the post,…