Author:
erics, April 11th, 2023
PROBLEM: I was seeing the following error when trying to do a plugin update, and an error in my WordPress logs: Update failed: 504 Gateway Timeout Gateway Timeout The gateway did not receive a timely response from the upstream server or application. [Tue Apr 11 22:12:01.373709 2023] [proxy_fcgi:error] [pid 26878] (70007)The timeout specified has expired: […]
Categories: How-To's, Technology Tags: 00-proxy_timeout.conf, 504, 504 ERROR, 504 Gateway Timeout, apache, fcgid.conf, Gateway Timeout, Gateway Timeout (504), Gateway Timeout Error, howto, HTTP 504, HTTP Error 504 – Gateway Timeout, Performance, php-fpm, Restart, Speed, systemctl, Timeout, tips, tuning
|
No comments
Author:
erics, July 16th, 2021
PROBLEM: Email delivery to Google was failing with a “Service Unavailable” error:
|
relay=aspmx.l.google.com. [IPv6:2607:f8b0:400d:c0c::1a], dsn=5.0.0, stat=Service unavailable |
Note that the network address for the destination is shown as IPv6! That is the root cause of the issue: 1. Sendmail is sending mail from the IPv6 address instead of the IPv4 address 2. Google rejects IPv6 senders without proper reverse […]
Categories: How-To's, Technology Tags: Amazon, Amazzon Linux, AWS, Delivery, DSN, Email, howto, IPv4, IPv6, Linux, make, Restart, SendMail, sendmail.cf, sendmail.mc, service, Service Unavailable, SPF, tips, Unavailable
|
No comments
Author:
erics, April 23rd, 2021
Ever get the spinning beachball when trying to access the top menu on your Mac? SOLUTIONS Use the GUI Open the Activity Monitor application Select All Processes from the View menu Click on the SystemUIServer process, then click Force Quit. ~or~ Via CLI In Terminal, execute killall SystemUIServer
Categories: How-To's, Technology Tags: Activity Monitor, All Processes, apple, BeachBall, Force, Force Quit, Hang, Hung, Kill, killall, killall SystemUIServer, Mac, MacOS, macosx, Menu, Quit, Restart, Shell, Spiining beachball, Stop, SystemUIServer, Terminal, Top Menu
|
No comments
Author:
erics, July 15th, 2020
|
sudo chgrp grafana /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem sudo chmod g+r /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem sudo vi /etc/grafana/grafana.ini sudo service grafana-server restart |
|
[server] # Protocol (http, https, socket) ;protocol = http protocol = https # https certs & key file ;cert_file = ;cert_key = cert_file = /etc/letsencrypt/archive/www.yourdomain.com/fullchain1.pem cert_key = /etc/letsencrypt/archive/www.yourdomain.com/privkey1.pem |
Categories: How-To's, Technology Tags: cert, certificate, Certs, chgrp, chmod, Enable, Existing, Grafana, Grafana Server, howto, https, LetsEncrypt, Restart, service, ssl, sudo, tips
|
No comments
Author:
erics, July 15th, 2020
|
sudo vi /etc/grafana/grafana.ini sudo service grafana-server restart |
|
#################################### Anonymous Auth ###################### [auth.anonymous] # enable anonymous access ;enabled = false enabled = true # specify organization name that should be used for unauthenticated users ;org_name = Main Org. org_name = yourGrafanaOrgNameHere |
Categories: How-To's, Technology Tags: /etc/grafana/grafana.ini, Access, Anonymous, Anonymous Access, Enable, Enable Anonymous Access, Grafana, Grafana Server, grafana.ini, howto, INI, Restart, sudo, Yips
|
No comments
Author:
erics, February 3rd, 2016
There are times when the hackers slam my servers and the load gets too high. I use a very simple bash script as a cron job to monitor the load and take action when it gets too high. The script will stop httpd, sleep for a configurable period of time (currently 3 minutes), then start […]
Categories: How-To's, Technology Tags: apache, apachectl, bash, Cron, howto, httpd, Restart, tips
|
No comments
Author:
erics, September 15th, 2015
The script to check and restart apache…works on CentOS – YMMV!
|
#!/bin/bash MAXLOAD=6 check=$(uptime | awk -F'average: ' '{print $2}' | awk '{print $1}' | tr -d ',') if [[ $check > $MAXLOAD ]]; then /sbin/service httpd stop HOST=`hostname` echo $HOST | mailx -s "$HOST load alert - apache STOPPED by cron script" load.alert@your.domain sleep 300 /sbin/service httpd start echo $HOST | mailx -s "$HOST load alert - apache STARTED by cron script" load.alert@your.domain fi |
Add to cron * * * * * /root/restart_apache_if_load_hits_threshold.sh >> /var/log/restart_apache_if_load_hits_threshold.log 2>&1
Categories: How-To's, Technology Tags: apache, AWK, bash, CentOS, howto, httpd, Load, load average, Restart, Stop, tips, Uptime
|
No comments