How do I even install Docker and Apache?

I can’t say I’m a total newbie to linux but I can’t just simply find any info on installing such basic software as docker or apache web server.

Seem to have managed to install docker but terminal only version, but neither apache nor httpd or nginx do not install or there is no information on how to launch it or anything else of that matter.

Simple commands like a2ensite, systemctl start apache2 e.t.c don’t work and even the all mighty AI is not of much help providing commands that would totally work on my Orange Pi computer but not on OpenMandriva.

Search
Search results for 'apache order:latest' - OpenMandriva forum
Helps?

After some reading and a little guesswork apparently it was as easy as doing “dnf install apache” and running “apachectl” once.

Now I’m completely stumped about installing php on top of it. Any suggestions?

I can’t seem to install it witout removing “mpm-event” but it has apachectl app that is required to run the web-server

image

I would first suggest making a new topic since you marked this as resolved.

It sounds like a dependency issue so you can either start a new topic as suggested, or open an issue here if you have an account:

2 Likes

In case anyone is looking for an answer to the OP’s first question:

(from my notes)

Install Docker

sudo dnf install docker docker-compose
sudo systemctl enable --now docker
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

To test:
docker run hello-world
If successful, you should get a hello back.

Enjoy!

1 Like

apache-mod_php doesn’t like the event MPM (upstream decision) - but it will work with any of the other MPMs. Try using one of the other MPMs:

dnf install apache-mpm-prefork
dnf rm apache-mpm-event
dnf install apache-mod_php

Or alternatively, use nginx, it’s also there

dnf install nginx

dnf install is (almost) always your friend when you’re trying to install something.

1 Like