moodle

Step 1: Install Apache HTTP web server Before installing Apache web server, first, login as root and update and upgrade the system repositories # sudo apt update -y && sudo apt upgrade -y Next, install Apache by running the command: # apt install apache2 Sample Output Next, start Apache2 HTTP server by running # systemctl start apache2 To verify the status of the server, run # systemctl status apache2 Step 2: Install MySQL and PHP Since...

Read More
linux

$ cp /etc/netplan/01-netcfg.yaml /etc/netplan/01-netcfg.yaml.orig   $ vi /etc/netplan/01-netcfg.yaml   Find current IP address $ ifconfig Replace the content with the following # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: ens160: dhcp4: no addresses: [192.168.1.45/24 ] gateway4: 192.168.1.1 nameservers: search: [static01.skayal.com] addresses: [192.168.1.1]   Generate the required configuration for the renderers. $ netplan generate   Apply all configuration and restart renderers. $ netplan apply    ...

Read More
cli

There are two ways to make this happen. The first is using the semicolon like so: sudo apt-get update; sudo apt-get upgrade -y  The only problem with that method is that the second command will run, even if the first command fails. In those cases, you'd run the command: sudo apt-get update && sudo apt-get upgrade -y Both versions of the command will run, but the second form will only run...

Read More

What is DNS-Over-HTTPS? DNS-over-HTTPS is an enhanced privacy protocol for the internet’s naming system that’s aimed at creating a safer browsing experience for all users. Microsoft recently became the latest tech player to announce that it would be implementing DNS-over-HTTPS – also known as ‘DoH’ – to improve the privacy and reliability of internet traffic for Windows users by supporting encrypted DNS queries. The move, which joins earlier...

Read More
phpmyadmin

  Edit file /usr/share/phpmyadmin/libraries/sql.lib.php using this command: sudo nano +613 /usr/share/phpmyadmin/libraries/sql.lib.php On line 613 the count function always evaluates to true since there is no closing parenthesis after $analyzed_sql_results['select_expr']. Making the below replacements resolves this, then you will need to delete the last closing parenthesis on line 614, as it's now an extra parenthesis. Replace: ((empty($analyzed_sql_results['select_expr'])) || (count($analyzed_sql_results['select_expr'] == 1) ...

Read More
phpmyadmin

MySQL 5.7 and above Creating a Superuser for phpMyAdmin In terminal, log in to MySQL as root. sudo mysql -p -u root CREATE USER 'pmauser'@'localhost' IDENTIFIED BY 'password_here'; Now we will grant superuser privilege to our new user pmauser. GRANT ALL PRIVILEGES ON *.* TO 'pmauser'@'localhost' WITH GRANT OPTION; You should now be able to access phpMyAdmin using this new user account....

Read More
Microsoft PowerShell

PowerShell 7.0 is now off beta and has officially arrived for all supported platforms, including Windows 10, macOS, and various Linux distros. It comes as the next major update after the Powershell Core 6, which was released three years ago. That was the time when Microsoft open-sourced PowerShell, although its Windows variant still lives behind closed doors. PowerShell 7 Features – What’s New? The Powershell 7 update is...

Read More
cli

Login to your server as root. As the root user, edit the sshd_config file found in /etc/ssh/sshd_config: vi /etc/ssh/sshd_config Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there. PermitRootLogin yes Save and exit the file. Restart the SSH server: systemctl restart sshd or service sshd restart  ...

Read More