Showing posts from August, 2021

Fixed Wordpress plugin install Could not create directory

 In this tutorial, How to Fixed wordpress plugin install could not create directory. I'm using Nginx, PHP 7.4 and WordPress on Ubuntu 21.04.  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… Unpacking the package… Could not create directory. How to do it Fixed Step 1: Getting the connection information Create new file whoami.php into /var/www/ directory. For example, the content as below root@localhost:~# cat /var/www/ <?php echo(exec("whoami")); ?> root@localhost:~# Curl url or type domain in browser as below  root@localhost:~# curl huupv root@localhost:~# Step 2: Change owner of the word

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 unzip 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, How to Issue Let's Encrypt certificates for multiple websites Nginx Let's Encrypt is a free and open-source Prerequisites Ubuntu instance with a LEMP stack installed. Two valid domain name. My example, and 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 you see the following output: root@localhost:~# certbot --nginx -d Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator nginx, Installer nginx Cert not yet due for renewal You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry. (ref: /etc/letsencrypt/renewal/ What would you like t

How to Install Caddy on Ubuntu

 In this tutorial, How to install Caddy on Ubuntu. The Caddy web server is an open-source web server written in Go. It is designed around simplicity and security that comes with a number of features that are useful for hosting websites. Caddy is both a flexible, efficient static file server and a powerful, scalable reverse proxy. Prerequisites A Ubuntu OS. A root user access or normal user with administrative privileges.  1. Update your system # apt update -y && apt upgrade -y 2. Install Caddy # curl -1sLf '' | sudo apt-key add - # curl -1sLf '' | sudo tee -a /etc/apt/sources.list.d/caddy-stable.list # apt update After install Caddy on Ubuntu server. # apt install caddy 3. Open your browser and enter your server IP or domain name: http://Server-IP OR 4. Configure Domain with Caddy Create a directory for your website files # mkdir -

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 | sudo apt-key add - $ sudo add-apt-repository "deb [arch=arm64] $(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