How do you set up a web server on MX Linux?
from Docker@lemmy.world to linux@lemmy.ml on 07 May 03:02
https://lemmy.world/post/29251600

#linux

threaded - newest

just_another_person@lemmy.world on 07 May 03:07 next collapse

The same way you set it up on every Linux. What’s your specific problem?

some_guy@lemmy.sdf.org on 07 May 23:34 next collapse

There are a couple of downvotes, but this is a valid comment. It’s considered good etiquette to demonstrate that some effort has been made to solve an issue when asking for guidance online.

LeFantome@programming.dev on 12 May 17:19 collapse

To be fair, not every Linux distro works the same. It has been a while since I setup Apache but there used to be quite a difference in configuration between Fedora derived distros and Debian derived distros for example.

Docker@lemmy.world on 07 May 03:21 next collapse

How do you begin right from the scratch ?

twilightwolf90@lemmy.world on 07 May 03:37 next collapse

Are we still doing LAMP stacks? Is that still the thing to recommend?

Start small. Do one thing at a time. Set up apache, learn how to secure it, expose it, filter out probes and bots, etc. This is a long and fulfilling journey. Maybe.

Dirk@lemmy.ml on 07 May 05:05 collapse

I feel like nowadays it’s more specific web servers instead of a general purpose one. Also containerization often is a thing.

MangoPenguin@lemmy.blahaj.zone on 07 May 03:58 next collapse

Just pick the webserver you want (nginx, caddy, etc…) and check the docs for Debian instructions since that’s what MX Linux is.

ikidd@lemmy.world on 07 May 04:42 collapse

Isn’t it Debian without systemd? So it’s going to be a pain to use regular documentation.

[deleted] on 07 May 11:17 next collapse

.

MangoPenguin@lemmy.blahaj.zone on 07 May 14:25 collapse

Ah, yeah MX might not be the best choice of a distro for ease of use.

tuckerm@feddit.online on 07 May 04:05 next collapse

What are you trying to host?

CarlMarks@lemmygrad.ml on 07 May 04:35 next collapse

A web server is just any software that can be accessed with web network protocols. This can look like a lot of things. If you have Python installed you can start a web server right now by running python -m http.server. localhost:8000 in a browset would then let you browse files via the (local) web.

What kind of server do you want to run?

HappyTimeHarry@lemm.ee on 07 May 05:14 next collapse

Mx linux is a bad chioce if you cant answer this yourself because its going to differ from most other debian distros. You probably want to use normal debian or linux mint if you are still learning.

To answer anyway; youll want to install lighttpd or similar server using apt, then firgure out the differences between sysvinit and systemd so you can properly configure the server to start.

If you just use debian instead, “sudo apt install lighttpd” would be enough to get everything started.

Shareni@programming.dev on 08 May 07:23 collapse

because its going to differ from most other debian distros

How? It’s just Debian with extra tools and sysvinit besides systemd.

then firgure out the differences between sysvinit and systemd

Or just set systemd as a default

TheFANUM@lemmy.world on 08 May 07:36 collapse

You just answered your own question

Shareni@programming.dev on 08 May 14:22 collapse

So, clicking a setting in a gui once is such a big deal that MX is a bad choice? Next level…

HappyTimeHarry@lemm.ee on 09 May 16:37 collapse

I think you know its not just a matter of “clicking a setting in a gui once”

Why would you choose a non systemd based distro only to just switch it over to systemd? Why over complicate thinga for a new user who is clearly just starting out? Just use normal debian!

Shareni@programming.dev on 10 May 07:21 collapse

I think you know its not just a matter of “clicking a setting in a gui once”

I know it is that simple because I’ve done it while running MX on my devices… You can even switch between the two at boot freely.

Why would you choose a non systemd based distro only to just switch it over to systemd? Why over complicate thinga for a new user who is clearly just starting out? Just use normal debian!

It comes with tools that make system management a lot easier for beginners. I think that’s more than a fair trade for having to click a single setting in a gui.

You obviously haven’t used MX, and I have no clue where you’re pulling your opinions out of from. Give it a try instead of continuing to spew nonsense.

HappyTimeHarry@lemm.ee on 10 May 18:05 collapse

I tried it about a week ago but since i have zero interest in alternatives to systemd or gui tools I find its easy to just install something that uses the things i want by default.

If you enjoy having that extea option and managing it with gui tools then im glad mx works for you, but it seems overcomplicated with no practical benefit to me.

What can sysv do that systemd cant anyway?

Docker@lemmy.world on 07 May 09:01 next collapse

I got this from someone :

When installing MX-Linux, you can also install the Apache web server. You will be asked during the installation. You can also install the web server later with the package manager.

When setting up, you just have then select the directories that you want to share for web access.

Docker@lemmy.world on 07 May 13:07 next collapse

Here’s what somebody suggested to me :

youtube.com/watch?v=8yVkkpK73DU

LeFantome@programming.dev on 07 May 16:50 next collapse

MX is just Debian under the hood.

itslinuxfoss.com/install-apache-web-server-debian…

Docker@lemmy.world on 07 May 17:07 collapse

This one is a very useful link. Thanks 😊😊

TheFANUM@lemmy.world on 08 May 07:36 collapse

You don’t. You use Debian, Ubuntu, or redhat.