Can't enable apache2

Hi guys,
I am trying to install a LAMP server to build my test websites with.
Following the instructions on the Digital Ocean website I have installed apache2 but it is not enabled.
These commands do not allow me to enable it.
Is there anyone who can advise me on how to proceed?

EG: sudo systemctl start apache gives me this result -

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.

The result for systemctl status apache2.service gives this result

apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese>
Active: failed (Result: exit-code) since Sun 2025-07-27 12:52:45 BST; 2min>
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 5477 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FA>
CPU: 9ms

Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: Starting Th>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA apachectl[5480]: apache>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA apachectl[5477]: Action>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA apachectl[5477]: The Ap>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: apache2.ser>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: apache2.ser>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: Failed to s>
lines 1-14/14 (END)

journalctl -xeu apache2.service gives me this result

Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA apachectl[5477]: The Apache error log may have more inform>
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: apache2.service: Control process exited, code=>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: apache2.service: Failed with result 'exit-code>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Jul 27 12:52:45 andym-VivoBook-ASUSLaptop-X430FA-S430FA systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit apache2.service has finished with a failure.
░░
░░ The job identifier is 2604 and the job result is failed.
lines 1061-1083/1083 (END)

Hey there!

Yeah installing a complete LAMP stack can be a pain. To save yourself from pain and suffering in the future, just go ahead and use ddev. Its the best tool there is for linux, especially since it is containerized! I've been using it for like 2 years now and its incredible.

ddev includes the entire lamp stack

Thank you freshjeff , there was no mention of this in my searches.
Is it available in the repository or from another source?

Ahh no worries, just clicked your link. All clear now. Thank you