Category : Ubuntu Server

1. Delete Journal records: journalctl –disk-usage sudo journalctl –rotate sudo journalctl –vacuum-time=2days sudo journalctl –vacuum-size=100M sudo journalctl –vacuum-files=5 sudo -H gedit /etc/systemd/journald.conf systemctl daemon-reload 2. Check for heavy files and then clean: sudo du -a / 2>/dev/null | sort -n -r | head -n 20 sudo apt-get autoremove sudo du -sh /var/cache/apt sudo apt-get autoclean ..

Read more

If you have a query that “How to reduce memory usage of MySQL Ubuntu Server” then don’t worry! In just 5 simple steps, you will be able to reduce your Mysql memory usage significantly. Step 1: Open file: /etc/mysql/mysql.conf.d/mysqld.cnf Step 2: Find [mysqld] and just under it, write: performance_schema = 0 Step 3: Restart Mysql ..

Read more

A very simple and straightforward way that worked for me is as follows: Stop apache2. sudo service apache2 stop Uninstall Apache2 and its dependent packages. sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common //or sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common Use autoremove option to get rid of other dependencies. sudo apt-get autoremove Check whether there are any configuration ..

Read more

Introduction – Install Apache PHP MySQL on Ubuntu 22.04 “LAMP” stack is a very popular word nowadays and it just means – Linux (Ubuntu comes under this), Apache, MySQL, and PHP.  All of these are open-source software and are installed together in order to enable a web server to host PHP-based web applications and dynamic ..

Read more