Turnkey Linux Nextcloud - PHP 8.2 update to PHP 8.3
PHP 8.2 is already deprecated in nextcloud, so id needs to be updated. The easy way is to use php-updater.
Installing php-updater
sudo wget -O /usr/local/bin/php-updater https://global-social.net/script/php-updater
sudo chmod +x /usr/local/bin/php-updater
To update 8.2 to 8.3
php-updater 8.2 8.3
Getting the error jq-binary not found, solved by
sudo apt install jq
The maximum memory for php in nextcloud need to be changed in:
/etc/php/8.x/fpm/php.ini
- Details
- Category: Proxmox
- Hits: 15
PiHole - Android no internet access - dns server failure
Installing and having the error "dns server failure" is a IPV6 error in my case. Fritzbox has enabled IPV6 but my provider has no IPV6 support.
Disabling IPV6 on Fritzbox or disabling IPV6 in Pihole solve this problem!
Use this to deactivate IPV6 in pihole, if IPV6 Adress Reservation is on, then dont use this!
nano /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
- Details
- Category: Proxmox
- Hits: 22
Proxmox - Nextcloud - Alpine Linux - Install SSL
Because is very hard to find such instruction, so i made one.
This instruction is for the alpine nextcloud server on proxmox hypervisor.
Only to do, if you know what you do!!
First:
#for certbot
apk add --update python3 py3-pip
#install certbot
apk add certbot
#install nginx plugin for certbot
apk add certbot certbot-nginx
#create certificate
certbot --nginx
#should tell you that you dont need...
certbot renew
My problem was certbot cant change nginx locations of certificate files, so i need to do it manualy...
Change the location in:
etc/nginx/nginx.conf
The next 2 lines are to change, yourdomain.com schould your domain!
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
Then:
service nginx restart
Now schould work.
There are 2 ways for automatic reneval:
1. my way
crontab -e
add the line:
0 0 * * * certbot renew --nginx --quiet
2. way: (not tested found searching...)
rc-service --list | grep -i crond
when the output is crond then --> rc-service crond start && rc-update add crond
create script:
#!/bin/sh
python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && sudo certbot renew -q
The location is /etc/periodic/daily/renew_letsencrypt. Save there
chmod a+x /etc/periodic/daily/renew_letsencrypt
validate it:
run-parts --test /etc/periodic/daily
output should be:
/etc/periodic/daily/renew_letsencrypt
- Details
- Category: Proxmox
- Hits: 54