Latest posts

Browse topics

Eagle Canyon and Dedoplis Tskaro (2023)

In early June 2023, my family and I embarked on another unforgettable road trip, this time venturing into the scenic wonders near Dedoplis Tskaro.

Our first stop on this thrilling journey was the captivating Eagle Canyon, a true haven for birdwatching enthusiasts. The canyon, tucked away in the heart of Georgia, offered a breathtaking spectacle of nature's beauty. Surrounded by lush greenery and echoing with the melodies of diverse bird species, it was a paradise for anyone seeking solace in the arms of untouched wilderness.

For our accommodation, we chose the Savanna guest house, a hidden gem itself. Nestled in the tranquility of nature, this charming abode provided us with a cozy retreat after our day of exploration. The warm hospitality and comfortable amenities made it a perfect home away from home.

The following day, our adventure continued as we made our way to the majestic St. Elia Mount. This picturesque destination is a testament to Georgia's diverse topography, featuring rolling hills and panoramic vistas that extend as far as the eye can see. Whether you're an avid hiker or a casual observer, St. Elia Mount promises an unforgettable experience.

What makes this particular region of Georgia truly special is its off-the-beaten-track allure. Unlike some of the more popular tourist destinations, Dedoplis Tskaro and its surrounding areas retain an authentic charm that's best appreciated in the company of fellow explorers. As a family, we relished the joy of discovering hidden gems together, creating memories that will undoubtedly last a lifetime.

To capture the essence of our journey, I've put together a video showcasing the highlights of our road trip. From the mesmerizing Eagle Canyon to the enchanting St. Elia Mount, each frame tells a story of our exploration in this less-explored corner of Georgia.

So, if you're yearning for a travel experience that goes beyond the ordinary, join us on this virtual adventure. Give the video a thumbs up, and let the wanderlust inspire your next expedition!

Safe travels and happy exploring!

How to Install Drupal 10 with Nginx, PHP-FPM 8.1, MySQL, phpMyAdmin on Ubuntu 23.04 - Linode Guide

In this article, you will learn how to set up a webserver for serving Drupal websites running with Nginx, PHP-FPM 8.1, MySQL, and phpMyAdmin on Ubuntu 23.04

For the following tutorial, I used very much the information from my previous guide with 22.04, but I decided to rewrite it for Ubuntu 23.04 version as it is shipped with php8.1 version and will work with Drupal 10 (most probably with previous versions too)

If you need any assistance configuring servers or working with Drupal, consider hiring me at the Terramatris website

Prerequisites

  • Ubuntu 23.04 
  • Root privileges.

You can get a cheap VPS starting at just $5/mo from Linode. That's what I did - bought a new nanode from Linode

Literally, in a couple of seconds, the new server was up and running - that's what I love about sticking with Linode for years

Follow the basic security guide, see: Securing Your Server

I will use Terminal from MAC to access  over SSH (Windows users could use Putty)

Secure your server

Create the user, replacing example_user with your desired username. You’ll then be asked to assign the user a password:

adduser example_user

Add the user to the sudo group so you’ll have administrative privileges:

adduser example_user sudo

Disallow root logins over SSH. This requires all SSH connections to be by non-root users. Once a limited user account is connected, administrative privileges are accessible either by using sudo or changing to a root shell using su -.

sudo nano /etc/ssh/sshd_config

Under # Authetification section change to

# Authentication: ...

PermitRootLogin no

Update the Ubuntu system

sudo apt-get update

Install Nginx and PHP-FPM

Install Nginx with the following apt command:

sudo apt-get install nginx -y

Next, install php8.1-fpm with php-gd extension that is required by Drupal core:

sudo apt-get install php8.1-fpm php8.1-cli php8.1-gd php8.1-mysql php8.1-xml -y

Configure Nginx and PHP-FPM

In this step, we will configure Nginx to use php-fpm to serve HTTP requests for PHP pages. Go to the php-fpm directory "/etc/php/8.1/fpm" and edit the "php.ini" file:

sudo nano /etc/php/8.1/fpm/php.ini

Un-comment the cgi.fix_pathinfo line and change the value to "0"

When using nano command you can use CTRL+W to locate that line. Once changed press CTRL+O to save changes and CTRL+X to exit from nano editor

Now we should modify the default Nginx virtual host configuration. Edit the "default" file and enable the php-fpm directive.

sudo nano /etc/nginx/sites-available/default

Un-comment  location ~ \.php$ section, so it look like this

location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php7.4-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
# With php7.4-fpm:
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}

CTRL+O and CTRL+X

Then test the Nginx configuration with the command "nginx -t" to ensure that it is valid:

nginx -t

If there is no error, restart nginx and the php-fpm service:

systemctl restart nginx
systemctl restart php8.1-fpm

PHP Info file (Optional)

Next, test that php-fpm is working properly with Nginx by creating new PHP info file in the web directory "/var/www/html"

cd /var/www/html/
echo "<?php phpinfo(); ?>" > info.php

Visit the info.php file at the server IP  in a web browser.

Configure the VirtualHost for Drupal

We will install Drupal 10 in the directory "/srv/www/reinisfischer.com". Please replace my domain name in your installation with the domain name of the website that you want to use this Drupal installation for. So let's create the directory:

sudo mkdir -p /srv/www/reinisfischer.com/{public_html,logs}
sudo usermod -a -G www-data admin
sudo chown -R www-data:www-data /srv/www
sudo chmod -R 775 /srv/www
sudo nano /etc/nginx/sites-available/reinisfischer.com

Paste the Nginx configuration for Drupal 10:

server {
    server_name reinisfischer.com;
    root /srv/www/reinisfischer.com/public_html; ## <-- Your only path $
    access_log /srv/www/reinisfischer.com/logs/access.log;
    error_log /srv/www/reinisfischer.com/logs/error.log;

    listen 80;
    listen [::]:80;


    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    # Very rarely should these ever be accessed outside of your lan
    location ~* \.(txt|log)$ {
        allow 192.168.0.0/16;
        deny all;
    }

    location ~ \..*/.*\.php$ {
        return 403;
    }

    location ~ ^/sites/.*/private/ {
        return 403;
    }

    # Block access to "hidden" files and directories whose names begin with a
    # period. This includes directories used by version control systems such
    # as Subversion or Git to store control files.
    location ~ (^|/)\. {
        return 403;
    }

    location / {
        # try_files $uri @rewrite; # For Drupal <= 6
        try_files $uri /index.php?$query_string; # For Drupal >= 7
    }

    location @rewrite {
        rewrite ^/(.*)$ /index.php?q=$1;
    }

    # In Drupal 8, we must also match new paths where the '.php' appears in the middle,
    # such as update.php/selection. The rule we use is strict, and only allows this pattern
    # with the update.php front controller.  This allows legacy path aliases in the form of
    # blog/index.php/legacy-path to continue to route to Drupal nodes. If you do not have
    # any paths like that, then you might prefer to use a laxer rule, such as:
    #   location ~ \.php(/|$) {
    # The laxer rule will continue to work if Drupal uses this new URL pattern with front
    # controllers other than update.php in a future release.
    location ~ '\.php$|^/update.php' {
        fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
        #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        include fastcgi_params;
        include snippets/fastcgi-php.conf;
        fastcgi_param SCRIPT_FILENAME $request_filename;
        fastcgi_intercept_errors on;
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    }

    # Fighting with Styles? This little gem is amazing.
    # location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
    location ~ ^/sites/.*/files/styles/ { # For Drpal >= 7
        try_files $uri @rewrite;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
    }
}

CTRL+O and CTRL + X

The Drupal virtual host file has been created, now we have to activate it by creating a symlink to the file in the "sites-enabled" directory:

ln -s /etc/nginx/sites-available/0dtespxtrading.com /etc/nginx/sites-enabled/

Test the Nginx configuration and if there are no errors restart Nginx:

nginx -t
systemctl restart nginx

Install MySQL

sudo apt-get install mysql-server
​sudo mysql_secure_installation

Warning: As of July 2022, an error will occur when you run the mysql_secure_installation script without some further configuration. The reason is that this script will attempt to set a password for the installation’s root MySQL account but, by default on Ubuntu installations, this account is not configured to connect using a password.

See: How To Install MySQL on Ubuntu 20.04 for mysql_secure_installation fix

Prior to July 2022, this script would silently fail after attempting to set the root account password and continue on with the rest of the prompts. However, as of this writing, the script will return the following error after you enter and confirm a password:

Output

... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters. New password:

This will lead the script into a recursive loop which you can only get out of by closing your terminal window.

Because the mysql_secure_installation script performs a number of other actions that are useful for keeping your MySQL installation secure, it’s still recommended that you run it before you begin using MySQL to manage your data. To avoid entering this recursive loop, though, you’ll need to first adjust how your root MySQL user authenticates.

First, open up the MySQL prompt: 

  1. sudo mysql

Then run the following ALTER USER command to change the root user’s authentication method to one that uses a password. The following example changes the authentication method to mysql_native_password:

  1. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

After making this change, exit the MySQL prompt:

  1. exit

Following that, you can run the mysql_secure_installation script without issue.

Install phpMyAdmin

sudo apt-get install phpmyadmin

Hit ESC when the installation prompts you for auto-configuration because there is no option for Nginx.

Make an easily accessible symlink

sudo ln -s /usr/share/phpmyadmin/ /srv/www/reinisfischer.com/public_html/phpmyadmin

Install and Configure Drupal

Enter the directory that we created earlier and download Drupal with wget. I'm using the latest Drupal 10.0.9. release as of May 3, 2023, make sure you are downloading the latest version by visiting the Drupal download page and writing down the last numbers (version)

cd /srv/www/reinisfischer.com
sudo wget https://ftp.drupal.org/files/projects/drupal-10.0.9.tar.gz
sudo tar -xvzf drupal-10.0.9.tar.gz
sudo cp drupal-10.0.9/* public_html/ -R
sudo chown www-data:www-data public_html -R

Now visit your Drupal site in the web Browser, you should see the similiar screen

Drupal 10 installation screen

Now, using phpmyadmin login into MySQL and setup database

Optional: How to edit hosts file on Mac

from the terminal 

sudo nano /etc/hosts

add your IP address pointing to the domain name to test before the DNS zone gets updated

If you need any assistance configuring servers or working with Drupal, consider hiring me at the Terramatris website

Discovering Sri Lanka: A Journey near Indian Ocean from Colombo to Galle

At the start of 2022, we traveled to Sri Lanka for about a two-week-long life-changing journey.

In this article, I'm sharing my travel notes with listing places of interest we visited. Also, make sure to watch our short video from this trip: Sri Lanka, Colombo, Bentota and Galle

The Tbilisi-Doha flight was good, with plenty of legroom. The plane seemed a bit outdated, a Boeing A230. But for a less than 3-hour flight, it was very decent.

The biggest surprise came at the Doha Airport, where we had reserved a business lounge with an option to stay at the so-called cubicles. It turned out they were on a first-served basis. I thought, "Alright, we got scammed."

Nevertheless, after some 40 minutes, we got our cubicle. It was nothing fancy, but better than nothing. We managed to get some sleep at our cubicle, and soon we were boarding the next plane departing for Colombo, Sri Lanka.

On the plane, I met a nice Sri Lankan software developer. We talked a bit, and he told me about Asian careers in Qatar. It turned out he hadn't been home for two years because of the pandemic.

Before booking the plane, we reserved Hilton Apartments in Colombo and requested an airport shuttle. It was approved for USD 35. After arriving in Colombo, we were asked to fill out a few more declarations and forms related to health and crossed the border.

Our driver waited for us, and soon we were taken to the Hilton Colombo hotel in Colombo. Here, we ordered a nice dinner with some fish and chips, rice and beef, and more. I also got a complimentary adapter for European/Sri Lankan plugs.

The next morning, we visited the hotel swimming pool and were surprised at the cold water in it, despite the temperature being +30 outside. The hot pool located inside helped.

After visiting the pools, I made a list of the top 3 sightseeing places in Colombo and caught a tuk-tuk on the street. The driver agreed to take us to the first location for 100 Sri Lankan Rupees.

We arrived at the temple, paid the entrance fee of 800 Sri Lankan Rupees, walked around, and took a lot of photos. When leaving the temple, another tuk-tuk driver approached us and offered to show us the top 10 places in Colombo for 1,000 Sri Lankan rupees. I quickly agreed, as I was against walking. We made stops at a few places, and I took photos and videos. We decided to skip some places from the list and return to our hotel.

In the evening, we visited the pool again, hoping it would be warm, but it was pretty cold again. The hot inside pool helped. Later in the night, we booked the next hotel in Bentota.

The next morning, before breakfast at Hilton Colombo Residences, I asked if they could help us arrange a transfer to Bentota, and the hotel helped. We were asked about 12,400 Sri Lankan rupees (around 60 USD) for the transfer.

In about two hours, we arrived at the Bentota Taj Spa Resort, checked in, and got a nice ocean view room. We went to the swimming pool and spent a few hours there. In the evening, we went to the ocean, and I took some amazing drone footage. Nice.

We spent a nice 2 nights here, and during our stay, we met Bata, a local tour seller at the beach. He sold us a day trip to the Madu Ganga safari boat, a visit to the Turtle hatchery, and a local spices and herbal garden. On the second day, I bought a surfing class again from Bata. Surfing was very fun. I took some more drone footage in the evening, with lightning in the background. Awesome.

In the evening, we agreed to cancel our plans to visit Kandy and instead spend the rest of our days near the Indian Ocean. We booked another 5-star resort spa located about 12 km away and paid 1,500 Sri Lankan rupees for the transfer. Once we were in the car, the driver started to sell us his awesome tours. Well, that's how it works here, I guess.

When we arrived at the Cinnamon Bay hotel, we were assigned a superior room. I made a little fuss and we were upgraded to a nice deluxe room for free. There's no victory without a fight! We enjoyed swimming in the deluxe pool, kids pool, and at the nearby Beruwala beach.

We also ordered a boat trip to the nearby Barberyn lighthouse for USD 30 the next day. I wasn't very excited about what I saw, but I'm just a very spoiled tourist, and it's hard to excite me. But what can you do? At least I made some nice drone footage.

I asked the same guide if he could provide us a day trip to Galle and the surrounding area. He agreed, but he was asking for USD 150. I tried to bargain, but the guide was not very flexible and wouldn't agree to a lower price. The next morning, before breakfast, I ordered the same day trip from another driver for USD 50.

We got a very nice and friendly driver who took us to a jewelry shop to exchange money, then to the moonstone mines where we learned how moonstone is mined out of the ground and bought some jewelry.

We made a short stop at the Tsunami victim memorial and were then taken to the amazing Galle Fort, where I met a Latvian-speaking craft seller named Jeffrey and made some nice drone footage.

We had a lovely dinner in Galle city and were later taken back to Beruwala by our driver with stops to buy some fresh fruit and visit temple elephants. It was a lovely day. With the same driver, we agreed that he would take us to Colombo the next morning for 8,000 rupees.

The next morning, we also ordered PCR tests to be done at our hotel. We woke up early, did the test at around 8 am, had breakfast, and spent a few hours at our deluxe pool, where we met a very curious baby lizard. At 12 pm, our driver arrived and our drive to Colombo started.

Despite the location being quite short, about 60 km, we spent more than 2 hours driving. Crazy! In Colombo, we checked into the Marino Beach hotel.

The hotel has a rooftop infinity pool, where we took a nice swim and ordered a few milkshakes. Sandra did some shopping at the nearby mall, and we went to bed early as we had a morning flight from Colombo airport. We had to leave at 6:30 am.

Mayer House Hotel in Tel Aviv

Mayer House Hotel in Tel Aviv is located on  Dizengoff Street 98. It featured an outdoor swimming pool, a terrace, a restaurant, and a bar.

We booked this hotel for a 2-night stay at the start of 2023, before returning back to Tbilisi. We paid about USD 430 for a 2-night stay here.

Complimentary wine from Mayer house hotel in Tel Aviv

Thsi small hotel has an excellent location, from here we were able to explore the neighbourhood, visit the Tel Aviv beach and more.

The property is close to several well-known attractions, 400 m from Dizengoff Center, 800 m from Meir Park and 1.3 km from Shenkin Street. The property is 500 m from the city centre and less than 1 km from Frishman Beach.

Queen size bed at Mayer house hotel in Tel Aviv

The room was really tiny, thus it had enough space to fit an extra bed for ur 4 year old daughter.

Rooftop pool

Looks rather small, and we didnt actually try it this time. But I like the ideas of rooftoip pools. Remind me one we visited in Colombo, Sri Lanka, see: Hotel Marino Beach Colombo

The hotel will provide guests with air-conditioned rooms offering a desk, a coffee machine, a fridge, a safety deposit box, a flat-screen TV and a private bathroom with a shower. Free WiFi is accessible to all guests, while selected rooms also boast a balcony. At Mayer House the rooms have bed linen and towels.

The accommodation offers an American or vegetarian breakfast.

Popular points of interest near Mayer House include Bograshov Beach, Gordon Beach and Dizengoff Square. The nearest airport is Ben Gurion Airport, 14 km from the hotel.

Our family's selfie at Mayer house hotel's roof

From here we took a taxi for about 120 ISL and travel back to Ben Gurion airport to fly next to Tbilisi

Decent stay. Great location. Book now on Booking.com

Istanbul With Kids

In late May 2023, my family and I embarked on a spontaneous adventure to Istanbul, immersing ourselves in the lively atmosphere of this vibrant city.

Our itinerary was filled with the thrill of amusement parks, where we embraced the joy of heart-pounding rides and laughter. Amidst the fun, we had the pleasure of meeting a dozen skilled Turkish mechanics, adding a unique touch to our journey. Engaging conversations and shared moments made this encounter a highlight of our trip.

Now, picture this: singing Bruģis and belting out "Let It Go!" in the heart of Istanbul. Our musical escapade added a touch of spontaneity to the trip, creating memories that resonate with the vibrant energy of the city.

And, of course, no adventure is complete without capturing the essence of the journey from above. Cue the drone footage! The stunning aerial views of Istanbul, its iconic landmarks, and the dynamic cityscape were all captured to create a visual feast for your wanderlust.

I've compiled all the excitement into a video, and I invite you to join us on this whirlwind of fun and exploration. Hit that thumbs up button and immerse yourself in the vibrant spirit of Istanbul. It's a journey filled with joy, laughter, and the magic of the moment.

Stay tuned for more travel tales, and until then, happy exploring!