Skip to content
Home » Ubuntu » Page 2

Ubuntu

Ubuntu Linux Technology, Related Information, How-To’s, Tips, Tools, and Guides

CHANGE VIRTUALMIN USER.DOMAIN TO USER@DOMAIN


VirtualMin has some pesky things. Here is a simple way to revert back to the older, better way of doing things

To change from user.domain logins back to user@domain logins

Login into VirtualMin

Click System Settings

Then Server Templates

Now select the Mail for Domain template

Scroll to the bottom and change the section Format for usernames that include domain

From user.domain

to user@domain

Now you are back to normal

[SOLVED] MAUTIC ERROR: The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator. System administrators, check server logs for errors

In performing an upgrade for mautic, you can run into this error. To fix it do the following

Type:
sudo su –
cd /home/user
chown -R www-data ./public-html/
systemctl restart apache2.service

Now close and reopen your browser. Nagigate back to mautic and it will be fine

[FIXED] PARROT OS NTP TIME INACTIVE

When you run timedatectl it will show you the current date and time on your Parrot box. You will also see that NTP in inactive. To fix it

sudo timedatectl set-ntp true

Then run

timedatectl

and the correct time will now show

[FIXED] VIRTUALMIN HTTP TO HTTPS REDIRECT

By default virtualmin creates sites in both http and https. Here is how to force all your traffic to your HTTPS site only

Log into Virtualmin

Select the Domain

Choose Server Configuration

Select Website Options

Place a dot next to Redirect HTTP to HTTPS by default

Save

And you are done. Your traffic now redirects

{FIXED} VIRTUALMIN PROFTPD ERROR AFTER UPGRADE TO UBUNTU 22.04

If you are receiving the following error after the upgrade:

UBUNTU 22.04 Upgrade Error with proftpd

Then you must do the following
sudo apt remove proftpd*
sudo apt purge proftpd*

Now you can run updates normally
sudo apt-get update
sudo apt-get upgrade

and you will not see the error anymore

And with that, you are welcome


(FIXED) – WORDPRESS ERROR FTP USER

  • Ubuntu

If your wordpress is asking for an FTP user to install plugins or themes, you have a permissions error
The specific error is as follows:
“To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.”

SSH into the server

View the .conf file located in the sites-available folder

find the SUSEXEC id numbers

then cat /etc/passwd

This will show you all the usernames

Find the SUSEXEC id number (This will be your apache user)

Then Type:
sudo chown -R apacheuserhere:apacheuserhere /home/name/public_html/

UPGRADE UBUNTU 20.04 TO 22.04

Quick how-to run and upgrade from the command line

Do not SSH into the server. Use KVM or a local connection to the server

Login

sudo bash

apt-get update

apt-get upgrade

apt-get dist-upgrade

do-release-upgrade

The server will upgrade to the latest version

INSTALL COMPOSER 2 ON UBUNTU 20.04

Quick How-To for getting composer 2 to work since composer 1 has been deprecated

Login to a terminal

sudo bash
apt-get update
apt-get upgrade
apt install php-cli unzip
exit
cd ~
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php

HASH=`curl -sS https://composer.github.io/installer.sig`

echo hash

php -r “if (hash_file(‘SHA384’, ‘/tmp/composer-setup.php’) === ‘$HASH’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”

Installer will be verified

sudo php /tmp/composer-setup.php –install-dir=/usr/local/bin –filename=composer

Composer will download and install

Then Type:
composer

You should see a Composer info screen