I wiped my SSD for my pi and reinstalled everything, brought my old files back from a backup. Went to configure apache2, (broke many times, apache2 command throws an error so i can only use apache2ctl). I saw that i installed a bunch of random ram excessive programs. I deleted them and freed up ram. Free commands outputs this.
free
total used free shared buff/cache available
Mem: 982532 226540 535132 7132 243820 755992
Swap: 1115132 0 1115132
Then when i got to start apache2, i get this.
Ă— apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/apache2.service.d
└─dietpi.conf
Active: failed (Result: exit-code) since Tue 2023-09-12 13:22:08 BST; 4s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 1932 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 130ms
Sep 12 13:22:07 Adminpi systemd[1]: Starting apache2.service - The Apache HTTP Server...
Sep 12 13:22:08 Adminpi apachectl[1935]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Sep 12 13:22:08 Adminpi apachectl[1935]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Sep 12 13:22:08 Adminpi apachectl[1935]: no listening sockets available, shutting down
Sep 12 13:22:08 Adminpi apachectl[1935]: AH00015: Unable to open logs
Sep 12 13:22:08 Adminpi apachectl[1932]: Action 'start' failed.
Sep 12 13:22:08 Adminpi apachectl[1932]: The Apache error log may have more information.
Sep 12 13:22:08 Adminpi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Sep 12 13:22:08 Adminpi systemd[1]: apache2.service: Failed with result 'exit-code'.
Sep 12 13:22:08 Adminpi systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
when I check whats using port 80, i get this.
root@Adminpi:~# sudo ps -p 40
PID TTY TIME CMD
40 ? 00:00:00 oom_reaper
I cant kill or change the config of oom_reaper because last time I did I didn’t have any memory to allocate. This time after a reboot I do have memory, but I don’t want to risk it again. There doesn’t seem to be much info about this process, but it kills random processes to free up memory apparently. Never seen it before. Is there any fixes to this problem?