Redirect site from www to non-www
It is better to make web site available with one URL. Many sites work with both wwww and non-www (naked
Squid Proxy Server allow connection to all ports
By default Squid proxy only allow out going connection to white listed ports that are used commonly. When you visit
Elasticsearch
ElasticSearch Install Install Elasticsearch 7 on Ubuntu for Magento 2.3 Install Elasticsearch on Debian for Magento Install elasticsearch on CentOS
Install Elasticsearch 6 on Debian for Magento
To install Elasticsearch for Magento on Debian, install Java 1.8 and apt-transport-https apt install -y openjdk-8-jdk-headless apt install -y apt-transport-https
CentOS 7 Grub 2
To regenerate grub config on CentOS 7, run grub2-mkconfig -o /boot/grub2/grub.cfg If you use UEFI, run grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg OVH
How to reinstall packages using yum
To reinstall a package with yum, run yum reinstall PKG_NAME Example yum reinstall kernel
Restart Services in Xampp Linux
You can restart services on xampp linux using /opt/lampp/lampp To restart, use /opt/lampp/lampp restart Here are other available options root@ip-172-31-36-153:~#
Remove SSH Private Key Passphrase
To remove SSH private key passphrase, run ssh-keygen -p -f SSH_PRIVATE_KEY_FILE Example Method 2 You can use OpenSSL to remove
Cpanel Exim Bypass SMTP authentication for specific IP address.
To bypass SMTP authentication for specific IP on Cpanel Exim mail server, edit file vi /etc/alwaysrelay Add IP or Hostname
AWS Elastic Beanstalk
Here are some useful command working with AWS Elastic Beanstalk eb init = initialize environment eb list eb logs eb
VestaCP redirect webmail to HTTPS
To always force webmail to use HTTP on VeataCP, edit file vi /etc/roundcube/defaults.inc.php Find $rcmail_config[‘force_https’] = false; Replace with $rcmail_config[‘force_https’]
Prometheus Node Exporter on non default port
To run Prometheus Node Exporter on custom port, use /usr/local/bin/node_exporter –web.listen-address=:9101 Here is systemctl service script i used [root@cdn 1945]#