October 23, 2022 in Ubuntu
To take the rules back to the default settings:sudo ufw reset Note: If you want to see how the sudo ufw reset will change your rules use –dry-run option first, then compare the /etc/ufw/before.rules.20170513_185835 file to the /etc/ufw/before.rules.20170513_185835 file. Example: To compare: After reset your server is able to login via ssh
October 14, 2022 in Ubuntu
Here is the script to restart a server automatically if it’s load increases above a limit : Use sudo if you have not permission Change the permisssion of file Now we need to add this script to cron which will run every 2 minutes Type crontab -e to open the cron input file. Enter the following code […]
October 8, 2022 in MySql, Ubuntu
For ubuntu (i used ubuntu 12.04), the default phpmyadmin apache configuration can be found at /etc/phpmyadmin/apache.conf You can open it by type sudo nano /etc/phpmyadmin/apache.conf and change the third To restart apache service
October 6, 2022 in Php, Ubuntu
The command will Uninstall Any of the PHP 8.X versions of PHP installed on your Server. Now we need to cleans obsolete deb-packages to do so we need to run autoclean command. Now we need to cleans obsolete deb-packages to do so we need to run autoclean command. remove orphaned packages that are no longer needed from the system […]
September 20, 2022 in Technology, Ubuntu
Get the volume’s mount point with df if you don’t already know it: The mount point will look like /mnt/volume-sfo2-01: Make sure the volume isn’t in use. If you try to unmount a volume while it’s in use, you’ll get a target is busy error, so check if any processes are using the mounted filesystem with lsof: Stop any listed processes. Unmount the […]