RaspberryPi

Basic Steps

Increase swap partition

$ less /etc/dphys-swapfile
$ ll /var/swap
-rw——— 1 root 100M Aug 20 06:58 /var/swap
$ sudo dphys-swapfile swapoff
$ sudo vi /etc/dphys-swapfile
    # add below line for 2GB swap partition
    CONF_SWAPSIZE=2048
$ sudo dphys-swapfile setup
want /var/swap=2048MByte, checking existing: deleting wrong size file (104857600), generating swapfile … of 2048MBytes
$ sudo dphys-swapfile swapon
$ sudo reboot

 

Old Stuff

Complete reinstall of base softwares

nginx

sudo su -
apt-get purge nginx nginx-common nginx-full
apt-get install nginx

# OR
sudo -H apt-get purge nginx nginx-common nginx-full
sudo -H apt-get install nginx

mariadb

sudo apt-get install --reinstall mariadb-server

#OR
sudo apt-get purge mariadb-*
sudo apt install mariadb-server

Essential softwares

phpmyadmin

sudo apt-get purge phpmyadmin
sudo apt installphpmyadmin

My Setup

Services

  1. nextcloud
  2. wordpress – Adhocshare
  3. phpmyadmin
  4. Media server
    Jellyfin (Plex & Emby) – https://www.electromaker.io/tutorial/blog/how-to-install-jellyfin-on-the-raspberry-pi

Helpers

Identify attached devicessudo blkid
Mount devices
sudo mkdir /media/MyDrive
sudo mount /dev/sdb1 /media/MyDrive
SSL certificatesInstall certbot
NetworkingHow to update google cloud DNS A record with dynamic ISP IP?
Multiple websites on nginxURL-1

 

sudo ln -s /etc/nginx/sites-available/nextcloud.conf /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/phpmyadmin.conf /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/www.robin.eu.org.conf /etc/nginx/sites-enabled/

nginx error11108#11108: *3195 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 73.73.110.140

 

Checked that restarting php fpm service took nginx out of error.

sudo systemctl restart php7.3-fpm.service
sudo systemctl reload php7.3-fpm.service

Solution
/etc/php/7.3/fpm/php.ini
Increased max_memory from 128 default to 512

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *