Skip to main content


@Friendica Admins I'm curious for feedback about other admin's setups. I know the default choice is apache, but how many are like me running nginx + php-fpm?

I'm curious what tips and tricks people have figured out? Has anyone settled on a good stable caching config? (Last time I set up caching I tried to limit it to just static files and images, but it somehow cached some of the regular pages it seems wondering if maybe one of those css or javascript files is actually dynamic?)

As it stands my setup is two nginx webservers behind an nginx load balancer, both running php-fpm, a shared nfs media storage directory, memcached on the database server for php sessions.

Friendica Admins reshared this.

in reply to Shiri Bailem

Single-user instance, but mine's just MariaDB, Nginx and (chroot'ed) PHP-FPM, all behind an haproxy front-end. It's been responsive enough I haven't felt the need to do anything extra about caching (yet!)

Friendica Admins reshared this.

in reply to Pippin

@Pippin You probably never will with a single instance. I may never reach the point of it being a problem, I was just having some performance issues early on, mostly due to available memory for the database.

Friendica Admins reshared this.

in reply to Shiri Bailem

@Shiri Bailem I'm another single-user instance, but it's pretty responsive and snappy with Nginx/FPM. To be honest, I haven't configured PHP on Apache in quite some time, and I expect it would be net slower just because of how Apache functions.

It was much slower before I dealt with the activitypub-troll.cf issue (they were murdering my db), it runs quite well for my needs. Might do caching and/or db replication, more as a best practice than because I think anyone will ever sign up on my instance...

I've got a cron running a version of something @Hank G ☑️ suggested in an older thread, and a few instance blocks, that also improved response times by a noticeable margin.

I'm living dangerously on develop, though I haven't pulled in a few days since it's performing much better now.

Friendica Admins reshared this.