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.

  • @Shdwdrgn
    link
    English
    43 months ago

    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@lemmy.worldOP
      link
      fedilink
      English
      13 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@lemmy.world
      link
      fedilink
      English
      03 months ago

      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.

      • @Shdwdrgn
        link
        English
        23 months ago

        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@lemmy.world
          link
          fedilink
          English
          23 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.