this post was submitted on 24 Nov 2024
46 points (100.0% liked)

Selfhosted

40487 readers
192 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi, I want to host a private Lemmy server under example.com mostly to be used without association (federation) with other Lemmy servers - this is due to the nature of the Lemmy server. It is going to be used only by people from a specific country, so in its initial phase, I am pretty sure these people won't care about any other servers not in this country's language. Anyway, that's besides the point.

The thing is I already have a Hetzner instance where I have set up an NGINX server hosting a couple of PHP websites - Wordpress and Mybb forum using mariaDB database and php 8.1.

The instance is running Ubuntu 24.04.1 LTS - which method of installing Lemmy would make sense? Docker, Ansible, or from scratch, as it is documented here https://join-lemmy.org/docs/administration/install_docker.html ?

I just do not want to disturb my currently installed websites on this server.

Any recommendations?

you are viewing a single comment's thread
view the rest of the comments
[–] jeena@piefed.jeena.net 12 points 1 week ago (1 children)

I did it for a year or so, exactly the same thing, I have a bunch of websites and other services like matrix, mastodon, peertube running on that server.

I found out the hard way that Lemmy is really not optimized for single user instances on a small VPS. In the beginning it was OK but the more they optimized for big instances like Lemmy.world and .ml the word it ran with few resources.

In the end it was so bad that it would Hogg all the servers resources and bring the whole server down every couple of hour so that I had to hard reboot it.

The worst part was that this impacted alł my other services and websites which went down with it every couple of hours. I tried to get a beefier server but that only helped until the next update.

In the end I switched to Piefed and couldn't be happier. It uses a lot less resources as a single user instance so I could downgrade the server again and it's written in python so I can much easier help working on it, no need to compile anything, etc. And it has a cool template engine which let's you easily modify how it looks and feels.

[–] undefined@lemmy.hogru.ch 2 points 1 week ago* (last edited 1 week ago) (1 children)

I’ve looked at Piefed and I kind of actually wish it were compiled. I come from the Ruby on Rails world and while I love Ruby (and Hanami too!) I’m just tired of interpreted languages (and Python always feels clunky coming from Ruby).

I wish I had the free time to learn Rust or Go, but I would be ecstatic to find a Crystal-based Lemmy server. Maybe when I’m 80 I’ll have the free time to work on that.

[–] AustralianSimon@lemmy.world 2 points 1 week ago (1 children)

I've been playing around with Go, I quite like it.

[–] undefined@lemmy.hogru.ch 1 points 1 week ago* (last edited 1 week ago) (1 children)

That seems to be the consensus but what keeps me from picking it up quickly is it always looks very low-level (I’ve been in Ruby land for far too long 😆)

[–] taaz@biglemmowski.win 2 points 1 week ago* (last edited 1 week ago)

I would really recommend just trying it out too (when RL time allows), all of the low-level stuff is often well hidden or not required to deal with unless you need it, well most of it is and everything having mostly one solution is a nice refresh compared to the hells of scripted languages.

- A long time python dev.

"Import-time" execution was a huge mistake.