Can't configure LAMP

Hi everyone! My teacher told me to install lamp for my code course at college. Well, it worked using the package available in the aur but somehow I can’t configure it. I found the tutorial in this forum, but I’m stuck and have no Idea how to move forward.

These are the commands I run:

sudo pacman -Syyu
sudo pacman -S apache
sudo nano /etc/httpd/conf/httpd.conf
sudo systemctl enable httpd

And all of them seemed to work well, bu I got this message when I run
sudo systemctl status httpd

× httpd.service - Apache Web Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Fri 2022-09-16 00:28:02 -05; 3s ago
   Duration: 64ms
    Process: 82463 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FAILURE)
   Main PID: 82463 (code=exited, status=1/FAILURE)
        CPU: 21ms

set 16 00:28:02 snakepit systemd[1]: Started Apache Web Server.
set 16 00:28:02 snakepit httpd[82463]: AH00534: httpd: Configuration error: More than one MPM loaded.
set 16 00:28:02 snakepit systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
set 16 00:28:02 snakepit systemd[1]: httpd.service: Failed with result 'exit-code'.

I hope anybody has an idea on how to fix this. Thanks!

Since you made changes to httpd.conf , make sure you use only one Multi-Processing Module. Apache supports 3 (prefork, worker or event), choose only one.
If you want to use php, choose prefork.



LAMP is an acronym for

Linux Apache Mysql Php

Arch based distributions use Mariadb instead of mysql.

So your teacher tells you to create a webserver deployment using the mentoioned components.

So your assignments going forward will likely require you to have a functional setup.

Given the nature of Manjaro you will likely want to use a virtual machine to create a similiar environment.

If your teacher/tutor is like the most they will be referring to an Ubuntu setup.

You can create such setup in a virtual machine using virtualbox and a server version of the Ubuntu distribution.