Posts

Showing posts from August, 2021

Fixed Wordpress plugin install Could not create directory

Image
In this tutorial, you'll learn how to fix the "Could not create directory" error during WordPress WordPress plugin installation. The setup involves using Nginx, PHP 7.4, and WordPress on Ubuntu 21.04. The error usually arises due to incorrect directory permissions.  To resolve it, you need to adjust the ownership and permissions of the wp-content directory to ensure the web server can write to it. By following the provided steps, you can ensure seamless plugin installation and a smooth WordPress experience. After install and configure wordpress completed. I have update plugin and could not create directory. I installed into a wordpress directory in /var/www . Nginx does not have permissions to write to the wp-content directory. Wordpress plugin SEO Error Installing Plugin: SEO 17.0 Downloading install package from https://downloads.wordpress.org/plugin/seo.17.0.zip… Unpacking the package… Could not create directory. How to do it Fixed Step 1: Getting the connection info

Rclone backup all VPS to microsoft onedrive

In this tutorial, How to use Rclone backup all VPS to microsoft onedrive. It's very simple, free to backup all to Cloud with Rclone. Rclone supports a lot of Cloud services Google Drive Amazon S3 Openstack Swift / Rackspace cloud files / Memset Memstore Dropbox Google Cloud Storage Amazon Drive Microsoft OneDrive Hubic Backblaze B2 Yandex Disk SFTP The local filesystem Install Rclone on VPS Link direct download here : I use Ubuntu server on VPS. cd /root/ wget https://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip cp rclone-v*-linux-amd64/rclone /usr/sbin/ rm -rf rclone-* Rclone command basic rclone config – Configure the connection to the cloud service. rclone copy – Copy files from server to cloud, skip if data already exists. rclone sync – Synchronize between server and cloud, only update data on cloud. rclone move – Move files from server to cloud. rclone delete – Delete the data of the folder. rclone purge – Deletes the data of the fol

Issue Let's Encrypt certificates for multiple websites Nginx

In this tutorial, you'll learn how to issue Let's Encrypt certificates for multiple websites using Nginx . Let's Encrypt is a free and open-source certificate authority that provides SSL/TLS certificates to encrypt your website's traffic.  This guide covers the steps to install Certbot, configure Nginx for SSL, and automate the certificate renewal process. By following these instructions, you can ensure that all your websites are secure and up-to-date with the latest certificates. Prerequisites Ubuntu instance with a LEMP stack installed. Two valid domain name. My example, devopsroles.com and huuphan.com You have access shell login VPS. You neeed install package certbot python3-certbot-nginx on your system. Let's Encrypt Certificates and Nginx Configure Certbot Let's Encrypt certificates for the first website Let's Encrypt free SSL for website. you run command the following certbot --nginx -d huuphan.com you see the following output: root@localhost:~# certbo

How to Install Caddy on Ubuntu

Introduction Caddy is an innovative, user-friendly web server that simplifies website management with its automatic HTTPS capabilities and straightforward configuration. Known for its exceptional ease of use, Caddy has quickly become a preferred choice for developers looking to deploy web servers with minimal hassle. In this guide, we will walk you through the steps to install Caddy on Ubuntu, ensuring you can leverage its powerful features for your web projects. Prerequisites A Ubuntu OS. A root user access or normal user with administrative privileges. Installing Caddy on Ubuntu  Step 1: Update Your System Before installing any new software, it's crucial to ensure that your system is up to date. Open your terminal and run the following commands: Copy code sudo apt update sudo apt upgrade -y These commands will refresh your package list and install the latest updates for your installed packages, ensuring your system is prepared for the Caddy installation. Step 2: Add Caddy's

How to installing Docker in Raspberry Pi 4

  In this tutorial. How to installing Docker in Raspberry Pi 4 1. Setup OS in the Raspberry Pi I used Ubuntu OS. 2. Update your system $ sudo apt update && sudo apt upgrade 3. Install basic packages $ sudo apt install net-tools git openssh-server Setting up Docker $ sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt-get update $ apt-cache policy docker-ce $ sudo apt-get -y install docker-ce $ sudo usermod -aG docker ${USER} Installing Docker Compose $ sudo apt install python3-pip $ sudo pip3 install docker-compose The basic command docker compose Then deploy the application: $ docker-compose up -d Find what docker-compose is running with the following command: $ docker-compose ps To remove the application $ docker-compose down