To install ONLYOFFICE Docs on Ubuntu 20.04, you can follow these steps: Add the ONLYOFFICE repository to your system: Copy code echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee/etc/apt/sources.list.d/onlyoffice.list Install the public GPG key: Copy code sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 Update the package index: Copy code sudo apt update Install ONLYOFFICE Docs: Copy code sudo apt install onlyoffice-documentserver After the installation is complete, open your web browser and go to...

Read More

Add the Remi repository to your system: Copy code sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Enable the Remi repository for PHP 7.4: Copy code sudo yum-config-manager --enable remi-php74 Install PHP 7.4: Copy code sudo yum install php If you have any PHP modules installed, you will need to reinstall them for PHP 7.4. You can do this by running the following command: Copy code sudo yum install <module-name> Replace <module-name> with...

Read More

Check PHP version before upgrading php -v or php --version Command to install the EPEL repository configuration package: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Command to install the Remi repository configuration package: yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm Command to install the yum-utils package (for the yum-config-manager command): yum install yum-utils Command to enable the repository: yum-config-manager --disable 'remi-php*' yum-config-manager --enable remi-php74 You can check the list of the enabled repositories: yum repolist If an old version is...

Read More
docker_facebook_share

Prerequisite - Docker should be installed mkdir learn-terraform-docker-container cd learn-terraform-docker-container Create a file and name it main.tf terraform { required_providers { docker = { source = "kreuzwerker/docker" version = "~> 2.13.0" } } } provider "docker" {} resource "docker_image" "nginx" { name = "nginx:latest" keep_locally = false } resource "docker_container" "nginx" { image = docker_image.nginx.latest name = "tutorial" ports { internal = 80 external = 8000 } } terraform init terraform apply docker ps Nginx will server up at port 8000 To stop the container, run terraform destroy...

Read More
terraform

sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" sudo apt-get update && sudo apt-get install terraform Verify the installation terraform -help Enable tab completion touch ~/.bashrc OR touch ~/.zshrc Install the autocomplete package terraform -install-autocomplete...

Read More

Power off the virtual machine. Edit the virtual machine settings and extend the virtual disk size. Power on the virtual machine. root@static01:~# fdisk -l root@static01:~# fdisk /dev/sdab Command (m for help): p Select (default p): p Command (m for help): n Partition number (1-4, default 1): 3 Command (m for help): t Command (m for help): w root@static01:~# fdisk -l root@static01:~# vgdisplay root@static01:~# pvcreate /dev/sdb3 vgextend kayals-vg /dev/sdb3 root@static01:~# lvdisplay root@static01:~#  lvextend -l +100%FREE /dev/mapper/kayals--vg-root root@static01:~# df -kh root@static01:~# resize2fs -p /dev/mapper/kayals--vg-root root@static01:~# df...

Read More