this post was submitted on 26 Mar 2024
6 points (68.8% liked)

Selfhosted

40672 readers
438 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
 

I have a few domains and some space available on a we server that I have had for ages but never really used. Its mainly meant for website hosting and it works pretty well for WordPress and similar services.

Could I host any self posted programs on such a server and what should I search for when researching options?

I can set up a database and upload files to the ftp server but i dont believe that i have a C panel or can run ssh.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 8 months ago (2 children)

If you can work from the command line (and assuming you have a linux server) then SSH is simple -- really all it does is give you a secure connection to the command line. You should get familiar with it because if something goes wrong with your server that may be the only way you can connect to it.

Next you need tools to transfer files to the server. While wget is useful for grabbing stuff from other web servers, while something like scp can get you to any host that also accepts ssh. I use this all the time to transfer files between home and work. Or you might set up an sFTP service to accept a GUI connection from a client like FileZilla.

As for what you can put on your web server... Well if you install php then you can run any php code. If you write javascript code then the web browser interprets that, so nothing to add to your server, but NodeJS code would require some installation. You also want to take some time to learn about security practices. For example if you have pages that use a database, an attacker can write a URL to gain access to your server if the code simply accepts any random input. There's not really any limit to what can be run, but some things (like the php example) require you to install more components on your server.

Alternatively, there are also functional services you can run that have nothing to do with web pages. For example, a caldav service would allow you to host your own calendar that can be shared between multiple people or locations. Or maybe you want to start up a chat server like IRC or Matrix? Maybe you want to start a Mosquitto server for your personal IoT content? Think of it this way -- literally anything and everything that makes the internet run is something you can host yourself.

[–] cosmicrookie 1 points 8 months ago

I just bought some shared web server space that allows me to upload files through ftp and create databases. Also i can choose PHP version. I believe that's about it. No ssh option

[–] marcos 0 points 8 months ago (1 children)

Just about this part:

Or you might set up an sFTP service to accept a GUI connection from a client like FileZilla.

FileZilla has been a troublemaker for decades (not because the software itself, but the OP won't get it right), and sFTP requires an extra service.

I'd recommend he get WinSCP or another scp client.

[–] [email protected] 2 points 8 months ago (1 children)

I'm curious what you've heard, this is the first recommendation I've seen against filezilla? You certainly have to get the server side set up right for it to work, and plain FTP is a security risk, but otherwise am I missing something?

[–] marcos 2 points 8 months ago

FileZila has relied in a distribution channel that has turned untrustworthy a while ago.

Since then, they migrated the project. But somebody that doesn't know what they are doing isn't sure to get a good version of it.