Quickly disable all plugins in WordPress.
This plugin needs to go into the wp-content/mu-plugins/
directory. Provided you have SSH access to the server where WordPress lives, you can do this:
cd $SITE_ROOT/wp-content/mu-plugins
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
#!/bin/bash | |
cd ~/db-backups | |
# Configure your database info | |
DB_NAME=sample_db | |
DB_USERNAME=sample_user | |
DB_PASSWORD=sample_pw | |
# Configure the name of the file |
upstream phpfpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
upstream hhvm { | |
server unix:/var/run/hhvm/hhvm.sock; | |
} | |
# SSL | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |