uberspace:wp-redis
Dies ist eine alte Version des Dokuments!
Wordpress Redis-Cache aktivieren
- Redis-Service installieren
test -d ~/service || uberspace-setup-svscan uberspace-setup-redis
- Git-Repo 'wp-redis-cache' clonen
mkdir ~/git && cd ~/git git clone https://github.com/BenjaminAdams/wp-redis-cache.git
- Plugin zu Wordpress hinzufügen
cp -r wp-redis-cache ~/www/${WP-PATH}/wp-content/plugins/
- Plugin in Wordpress Web-UI aktivieren
- Datei 'index-wp-redis.php' kopieren
cp index-wp-redis.php ~/www/${WP-PATH}/
- Sicherungskopie von 'index.php' erstellen
mv ~/www/${WP-PATH}/index.php ~/www/${WP-PATH}/index.php.bak-$(date +%F)
- Datei 'index.php' kopieren
cp index.php ~/www/${WP-PATH}/
- Datei 'index-wp-redis.php' editieren
- Setzen von '$debug'
$debug = false;
- Setzen von '$websitIp'
$websiteIp = 'z.y.x.w';
- Setzen von '$sockets'
$sockets = true;
- Setzen von '$redis_server'
$redis_server = '/home/<USER>/.redis/sock';
- Setzen von '$secret_string'
$secret_string = 'mysecret'
uberspace/wp-redis.1450003825.txt.gz · Zuletzt geändert: von benh
