My #Pixelfed node is back up again. I had forgotten to reinstall the bcmath extension when I downgraded #PHP from 7.4 to 7.3 because #Nextcloud on the same machine isn't compatible, which prevented #Composer to pull the latest dependencies, which triggered a PHP Fatal Error. π
Ah, the joys of #selfhost without containers! I'm more and more tempted to look into #Docker, but I'm afraid of the learning curve before I get the same setup I have now. Also it probably would involve converting about 20 #Apache configuration files to #nginx which I'm not looking forward to either.
Does anyone have any pointers for either task, containerization and/or migration from Apache to nginx? #help
Ah, the joys of #selfhost without containers! I'm more and more tempted to look into #Docker, but I'm afraid of the learning curve before I get the same setup I have now. Also it probably would involve converting about 20 #Apache configuration files to #nginx which I'm not looking forward to either.
Does anyone have any pointers for either task, containerization and/or migration from Apache to nginx? #help
Norz likes this.
Brian Γ
Some of it may be fairly idiosyncratic but feel free to ask questions. It's really not that hard.
Hypolite Petovan
Brad Koehn βοΈ
But the situation you describe is precisely why I switched to Docker: trading disk space and a bit of RAM (which are cheap) for my time (which is valuable). I run a tweaked version of the nextcloud image and the stock pixelfed image and never have to worry about shit like incompatible extensions ever again.
You don't even need to containerize apache (though eventually it's worth it), just containerize the apps for the time being since they're the trouble.
Hypolite Petovan
Beko Pharm (deprecated)
Hypolite Petovan
Beko Pharm (deprecated)
Hypolite Petovan
Beko Pharm
Brad Koehn βοΈ
/var/www/html
to containerize it. For Pixelfed, you mount your config and data into the container. I'm happy to share my setup if that helps.I added a few things to the nextcloud image that make it a bit easier for me to administer, and enables previews of PDFs.
Brian Γ
Hypolite Petovan
Steffen K9 π°
Hypolite Petovan
Steffen K9 π° likes this.
Hypolite Petovan
Ermanno
Hypolite Petovan
Ermanno
Hypolite Petovan
Ermanno
Also iostat can be used to see if the swap is being used too much.
Hypolite Petovan likes this.
Hypolite Petovan
Ermanno
Hypolite Petovan likes this.
Hypolite Petovan
Ermanno
I was mentining gentoo because it has a great multislot support and multiple versions of packages (php) can be installed without the need of an external repo.
Hypolite Petovan
Ermanno
Hypolite Petovan
I do not judge other people for their choice, Iβve assessed my particular situation and deemed systemd out of my reach. I do not know how to properly troubleshoot it and Iβm not interested in learning it, so it closes some opportunities to me. Itβs a trade-off I accept.
Ermanno
I had a similar problem, a bug in image magick was causing crashes in php-cli while running friendica worker.php with certain png images, a lot of core dumps; the default configuration of systemd stores and compresses the coredumps in journald, a great feature for developers that might desire to analyze the dumps, an inconvenience for end users. Sometimes I had several journald threads compressing the large coredumps caused by php. I did not investigate further but removing the php-magick extension from php-cli fixes the problem, well systemd can also be configured to discard the coredums of course.
I don't know why only worker.php causes the crash while mod_php or php-fpm doesn't.
Hypolite Petovan likes this.
Beko Pharm
I started embracing #systemd fully last year and it does make sysadmin life so much easier. Not just as "start this" replacement but with reading into all the features it does offer.
Wouldn't want to go back.
vesperto
Hypolite Petovan
vesperto
Hypolite Petovan