Diagnose problems within WordPress by running a series of checks for symptoms.

wp doctor check –all

Diagnose problems within WordPress by running a series of checks for symptoms.

wp package install [email protected]:runcommand/doctor.git

https://runcommand.io/wp/doctor/

wp core verify-checksums

Nginx Starting, Stopping, and Reloading Configuration

nginx -s reopen

To start nginx, run the executable file. Once nginx is started, it can be controlled by invoking the executable with the -s parameter. Use the following syntax:

nginx -s signal

Where signal may be one of the following:

  • stop — fast shutdown
  • quit — graceful shutdown
  • reload — reloading the configuration file
  • reopen — reopening the log files

 

 

http://nginx.org/en/docs/beginners_guide.html

How does reverse SSH tunneling work?

ssh -f -N -T -R22222:localhost:22 yourpublichost.example.com
ssh -p 22222 [email protected]

http://unix.stackexchange.com/questions/46235/how-does-reverse-ssh-tunneling-work

Let’s Encrypt SSL certificate renew

In case EasyEngine Let’s Encrypt SSL certificate renew command does not work then we can run the Let’s Encrypt renew command can used redirected

# ./opt/letsencrypt/certbot-auto renew
# netstat -anp | grep :443 | grep ESTABLISHED | wc -l
# fuser -k 443/tcp

Service NGINX reload issue [fixed]

# Kill all the NGINX listen port
O_O[[email protected]:~]# fuser -k 80/tcp;
80/tcp: 3145 3146
^_^[[email protected]:~]# fuser -k 443/tcp;
443/tcp: 3150 3151

https://miteshshah.github.io/linux/nginx/how-to-fix-nginx-reload-issue/

https://bugs.launchpad.net/nginx/+bug/1476296

MySQL connection problems: unauthenticated user

You can work around the borked name server by restarting MySQL with the –skip-name-resolve option. This prevents MySQL trying to resolve the host name for each thread, bypassing the name server problem.

[email protected]:~ $ mysqladmin processlist
+-----+----------------------+--------------------+----+---------+------+-------+
| Id  | User                 | Host               | db | Command | Time | State |
+-----+----------------------+--------------------+----+---------+------+-------+
...
| 261 | unauthenticated user | 10.20.115.19:43381 |    | Connect |      | login |
| 262 | unauthenticated user | 10.20.115.19:43396 |    | Connect |      | login |
| 263 | unauthenticated user | 10.20.115.19:43420 |    | Connect |      | login |
| 264 | unauthenticated user | 10.20.115.19:43429 |    | Connect |      | login |
| 265 | unauthenticated user | 10.20.115.4:55297  |    | Connect |      | login |

http://codeinthehole.com/writing/solving-mysql-connection-problems-caused-by-a-dead-name-server/