debug wordpress

modify wp-config.php

check /wp-content/debug.log

define(‘WP_DEBUG’, true); // enable debug.
if (WP_DEBUG) { // only if enabled
define(‘WP_DEBUG_LOG’, true); // write to debug.log
define(‘WP_DEBUG_DISPLAY’, false); // do not show on browser
@ini_set(‘display_errors’,0); //do not show on browser
}

raspberry pi + moodeaudio + tigervnc + jdownloader + transmission all in one

Make bootable sd card on Mac.

List disk.
$ diskutil list

unmount SD card.
$ sudo umount /dev/disk2s1

copy moodeaudio to SD card.
$ sudo dd bs=1m if=Downloads/moode-r630-iso.img of=/dev/rdisk2

update raspberry pi and install vim
$ sudo apt-get update
$ sudo apt-get install vim
$ sudo apt-get upgrade

Mount extra usb on raspberry pi
$ sudo fdisk -l
obtain UUID of usb disk

$ sudo mkdir /home2
$ sudo mount /dev/sda1 /home2

$ sudo vim /etc/fstab
UUID=dc69fc31-4a50-44e2-a3f7-f5648fea6f8d /media/usb0 ext4 defaults,nofail 0 0

Reboot -> open moode.local on web browser.

Go Configure -> open Network, change to static IP,
Go System check for update and update.

Check progress of update with
$ moodeutl -t

Reboot

Update USB music library.
$ cd /mnt/SDCARD
$ sudo ln -s /home2/Music Music

open moode.local on web browser. Configure -> Library -> RE-GEN MPD database.

Install vncserve
$ sudo apt-get install tightvncserver

Install x and gui

$ sudo apt-get install –no-install-recommends xserver-xorg
$ sudo apt-get install –no-install-recommends xinit
$ sudo apt-get install –no-install-recommends raspberrypi-ui-mods lxsession

Install Japanese font
$ sudo apt-get install fonts-noto

Run VNC
$ vncserver :0 -geometry 1600×1200 -depth 24

Install Jdownloader and Java

$ mkdir ~/bin
$ mkdir ~/bin/jdownloader
$ cd ~/bin/jdownloader
$ wget http://installer.jdownloader.org/JDownloader.jar

$ sudo apt-get install openjdk-11-jre-headless

Connect report desktop by VNC, Open xterm
$ java -jar JDownloader.jar -norestart
$ java -jar JDownloader.jar -norestart

Run Until jdownloader update finish.

Install transmission
$ sudo apt install transmission-daemon
$ sudo systemctl stop transmission-daemon
$ sudo systemctl disable transmission-daemon

$ transmission-daemon
$ ps -u pi
$ kill ****
$ vim ~/.config/transmission-daemon/settings.json
Remove web access restriction, update download folder etc..
$ transmission-daemon
transmission-daemon -f will run with log.
Open http://moode.local:9091 and update setting.

edit nginx.conf and add
$ sudo vim /etc/nginx/nginx.conf

server {
listen 8080;

location / {
root /home2/t;
autoindex on;
}
}

$ sudo sqlite3 /var/local/www/db/moode-sqlite3.db “DROP TRIGGER ro_columns”
$ sudo sqlite3 /var/local/www/db/moode-sqlite3.db “UPDATE cfg_hash SET ACTION = ‘warning’ WHERE PARAM = ‘/etc/nginx/nginx.conf'”

$ sudo systemctl restart nginx.service

Japanese font for jdownloader.
$ sudo apt-get install fonts-ipaexfont
$ cd /usr/lib/jvm/java-11-openjdk-armhf/
$ mkdir fonts
$ mkdir fonts/fallback
$ cd /usr/lib/jvm/java-11-openjdk-armhf/lib/fonts/fallback
$ ls
$ sudo ln -s /usr/share/fonts/opentype/ipaexfont-gothic/* ./

Install vsftpd
$ sudo apt-get update
$ sudo apt-get install vsftpd ftp
$ sudo vim /etc/vsftpd.conf
# Uncomment this to enable any form of FTP write command.
#write_enable=YES

$ sudo systemctl enable vsftpd
$ sudo systemctl start vsftpd

Reference:

https://blog.bnikka.com/raspberrypi/moode-audio.html

https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=133691&sid=c71a1e9285378559ec9264dafe9ee1b1

Raspberry Pi 3B+ Downloadserver mit jDownloader und Deluge Torrent

https://support.jdownloader.org/Knowledgebase/Article/View/52/0/install-jdownloader-on-nas-and-embedded-devices

https://pimylifeup.com/raspberry-pi-transmission/

moodeaudio Integrity check (failed) when modify nginx.conf

pi@moode:~ $ moodeutl -t
20191207 162352 worker: — Start
20191207 162352 worker: Successfully daemonized
20191207 162352 worker: Integrity check (failed)
20191207 162352 worker: Exited

to fix

pi@moode:~ $ sudo sqlite3 /var/local/www/db/moode-sqlite3.db “DROP TRIGGER ro_columns”
pi@moode:~ $ sudo sqlite3 /var/local/www/db/moode-sqlite3.db “UPDATE cfg_hash SET ACTION = ‘warning’ WHERE PARAM = ‘/etc/nginx/nginx.conf'”