Install LAMP with PHP 7.4 on FastCGI/CGI configuration on CentOS 7 Rumi, March 24, 2021 Step 1 – Setup Yum Repository In the first step install all the required yum repositories in your system used in the remaining tutorial for various installations. You are adding REMI, EPEL, Webtatic & MySQL community server repositories in your system. CentOS / RHEL 7 yum install epel-release rpm -Uvh… Continue Reading
How to enable Proxy Settings for Yum Command on RHEL / CentOS Servers Rumi, March 24, 2021 This can be easily achieved with yum config file “/etc/yum.conf“. Under main section define the proxy settings like below: ……………… proxy=http://<Proxy-Server-IP-Address>:<Proxy_Port> proxy_username=<Proxy-User-Name> proxy_password=<Proxy-Password> ……………… Save and exit the file and start using the yum command. Sample yum Config file with proxy settings is shown below : Continue Reading
Ping behind proxy using httping Rumi, March 5, 2021 You can use utility httping for that. It sends a HEAD request (by default) to a web server and measures the time it took to get a response. The utility is available through a number of repositories for different OS’es and Linux distros: Ubuntu: sudo apt install httping Alpine: sudo… Continue Reading
Manually purge data from Graylog 2.1 Rumi, March 1, 2021March 1, 2021 First aid: check which indices are present: curl http://localhost:9200/_cat/indices Then delete the oldest indices (you should not delete all) curl -XDELETE http://localhost:9200/graylog_1 curl -XDELETE http://localhost:9200/graylog_2 curl -XDELETE http://localhost:9200/graylog_3 Fix: You can then reduce the parameter elasticsearch_max_number_of_indices in /etc/graylog/server/server.conf to a value that fits your disk. Src: https://stackoverflow.com/questions/39502069/how-to-manually-purge-data-from-graylog-2-1 Continue Reading
Install Rainloop on PHP 5.6 on Debian 8 LAMP Rumi, February 12, 2021 Step-1: Install LAMP on Debian I’ve used a bash script to install LAMP. You may find it useful. #!/bin/bash ######################################################## ### This script is created by Hasn T. Emdad Rumi <h.t.emdad@gmail.com>. ### Released under GPL 2.0 licensing ### Date: 12-Aug-2016 ######################################################## echo “Updating Debian Repository…” apt-get install debian-keyring debian-archive-keyring -y… Continue Reading
E: Release file for http://archive.debian.org/debian/dists/jessie-backports/InRelease is expired (invalid since 715d 18h 14min 9s). Updates for this repository will not be applied Update Wheezy or Jessie Repo Rumi, February 6, 2021 Wheezy and jessie both has gone EOL and repos too. archive repo doesn’t seem to usually work either. So here’s a little trick that worked for me. Below is my repo.list file- deb http://archive.debian.org/debian jessie main deb http://archive.debian.org/debian-archive/debian-security/ jessie updates/ma$ #deb http://security.debian.org/ jessie/updates non-free contrib main #deb http://mirrors.ocf.berkeley.edu/debian/ jessie-updates main… Continue Reading
Updating Webmin Logo Rumi, January 21, 2021January 21, 2021 On a default installation, your Webmin login page looks like below: To suppress both the Webmin logo and the “Webmin” text from the login page, add below to Webmin > Webmin Configuration > Webmin Themes > Theme Extensions: Continue Reading
Generate Large Test Files in Windows Rumi, January 16, 2021 Open an administrative level command prompt. Run the following command: fsutil file createnew <file> <size in bytes> For example, this command will create a 1GB file called 1gb.test on my desktop: fsutil file createnew c:\users\steve\desktop\1gb.test 1073741824 The key is to input the size of the file in bytes so here… Continue Reading
Delete/Purging mysql-bin (binlog) files safely Rumi, January 7, 2021 The file mysql-bin.index keeps a list of all binary logs mysqld has generated and auto-rotated. The mechanisms for cleaning out the binlogs in conjunction with mysql-bin.index are: PURGE BINARY LOGS TO ‘binlogname’; PURGE BINARY LOGS BEFORE ‘datetimestamp’; These will clear all binary logs before the binlog or timestamp you just… Continue Reading
MySQL: Show Users, Privileges and Passwords Rumi, December 29, 2020 Show all MySQL users: mysql> SELECT user FROM mysql.user; List only unique user names: mysql> SELECT DISTINCT user FROM mysql.user; Show MySQL users and hosts they are allowed to connect from: mysql> SELECT user,host FROM mysql.user; Show MySQL users, their passwords and hosts: mysql> SELECT user,host,password FROM mysql.user; in MySQL… Continue Reading