Install a virtual machine with Ubuntu 22.04 on KVM. Get all necessary for installation parameters from the Ubuntu image file. Configure networking.
Install KVM packages on Ubuntu 22.04 Server. Configure network Interfaces. Install on a VirtualBox virtual machine if you’d like to try it first.
Create and configure Ubuntu 22.04 / 20.04 VirtualBox virtual machines, configure networking, install Guest Additions, share folders, optimize performance, etc.
Add SMTP mail functionality to the official Docker WordPress image. See 2 examples of adding Postfix to Wordpress in a separate container. Learn how to add Postfix to the same container with a Dockerfile. Learn how to set DNS/rDNS records to increase outbound mail deliverability.
Use a Dockerfile to add XDebug to the official Docker WordPress image. Do not want to build? Use a pre-made image from a repository on Docker Hub. Also, see how to configure PhpStorm for debugging. And finally, learn how to separate production and development environments using multiple docker-compose files.
Contents Copy a Directory Copy a File If you need to copy files or directories between 2 different Linux servers, please see this article instead. Copy a Directory Suppose you have a directory /opt/test and you want to copy it as /opt/test2. Run in the terminal: , where For more details: Please notice: For the […]
It is good to check WordPress themes and plugins locally before using them on production. You can do it quickly in a WordPress Docker container. Contents 1. Install WordPress with Docker Compose 2. Additional WordPress Configuration 3. How to Add a Domain to the File hosts 3.1 File hosts on the Host Machine 3.1 File […]
Query Monitor Does Not Show Extended Information Without a Symlink: The WordPress plugin Query Monitor, when being installed, tries to create a symlink wp-content/db.php to the file wp-content/plugins/query-monitor/wp-content/db.php. If the symlink could not be created, the plugin would not show the extended query information. And you’ll see the messages in the plugin panel: Extended query […]
We’ll be using the GeoIP2 PHP library from Maxmind. They have 2 versions: free and paid. We’ll be using the free version here. Please notice: The other solution (to get your visitors country from their IP address), would be to use an external service. For example, geoplugin.com. Please see this post for a detailed solution. […]
We will use the command scp to copy files and directories between servers. Contents Copy a File Copy a Directory If you need to copy files or directories within a single Linux server, not between servers, please see this article. Copy a File Suppose, you have a file /path/to/file.dump.gz on a source server. And you […]
To keep your script running after the Putty terminal gets closed, you need to detach the session in which the script is running. A simple way to detach a session is to use the command screen. Contents 1. Use the Command screen 1.1 How to Install screen? 1.2 How to Use screen? 2. Other Solutions […]
Craete a mail forwarder in a Docker container. Should be a quick and simple solution.
Make MySQL 8 compatible with old MySQL versioins. Make passwords compatible, deal with errors. See some examples of setting SQL Modes in MySQL 8.
Shows how to add colors in Gutenberg (WordPress) to the default core color palette (in a theme or a plugin).
PhpStorm has a lot of great settings simplifying the developer’s work. But some very convenient settings are turned off by default. On the other hand, some rarely used ones are turned on by default. You can change some default settings to make your work in PHP faster.