How to increase and set upload size to 100MB in PHP-Apache

To increase the maximum upload size to 100 MB in PHP running on Apache, you can follow these steps: Open the PHP configuration file: sudo nano /etc/php/7.x/apache2/php.ini Change the following values: upload_max_filesize = 100M post_max_size = 100M Save and close the file. Restart Apache: sudo systemctl restart apache2 The maximum upload size has now been … Read more

How to use LXD (Linux containers) in a shell script to create VM when the cloud instance launches

You can use LXD (Linux containers) in a shell script to create a virtual machine (VM) when a cloud instance launches by following these steps: Install LXD: sudo apt-get update sudo apt-get install lxd Initialize LXD: sudo lxd init Create a new container: sudo lxc launch ubuntu:18.04 <container_name> Create a shell script to launch the … Read more

How to update and upgrade Pi-hole with an OpenVPN on Ubuntu/Debian Linux server

To update and upgrade Pi-hole on an Ubuntu/Debian Linux server with OpenVPN, you can follow these steps: Connect to your OpenVPN server: sudo openvpn –config client.ovpn Update the package lists: sudo apt-get update Upgrade the installed packages: sudo apt-get upgrade Update Pi-hole: sudo pihole -up Note: The exact commands may vary depending on your setup … Read more