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 ..
Author : Santosh
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 ..
This seems to be an issue with WordPress 6.1 After WordPress 6.1 update, If your website is down and in the apache error log you get the following error: PHP Fatal error: Uncaught Error: Call to undefined function cache_users()… Then we’ve 2 solutions to deal with solutions: 1. log in to your cPanel or access ..
sudo apt install git dkms git clone https://github.com/aircrack-ng/rtl8812au.git cd rtl8812au sudo make dkms_inst..
Step 1: Open this file: /etc/php/8.1/fpm/php.ini and make the required changes in it. Step 2: Restart the server: sudo systemctl restart php8.1-f..
Have you ever intended to learn back-end web development but were unsure of where to begin? We’ve finalized 6 Best Books to Learn PHP For Beginners… You have arrived at the correct location if you’ve got a question “which are the best books to learn PHP for beginners”. Back-end web development employs numerous languages, including ..
While having an online meeting on platforms like Skype, Google Meet, and Zoom, whenever we share our screens it always shows as a black screen with a mouse cursor to other people in the meeting. This is a standard problem with Ubuntu PCs. To fix this problem, open the following file: /etc/gdm3/custom.conf And then simply ..
Case 1: Normal WordPress setup in the root and multisite setup inside a directory in it. For more clarity, https://domain.com => WordPress Single Site Setup https://domain.com/demo => Demo is a folder (subdirectory) and has WordPress multisite setup. For this case, below is the NGINX config file: server { listen 443; server_name domain.com www.domain.com; root /var/www/html; ..
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 ..
After upgrading our servers to PHP 8.1, we received a warning as Deprecated: Required parameter $x follows optional parameter $y This was the code that has this error: public function function_name ($y=”, $x) { function code…. } To fix this, we changed the above code to: public function function_name ($y, $x) { $y=$y ?? ”; ..