Koozali.org: home of the SME Server

Apache systemd[1]: httpd.service failed

Offline isotropic

  • *
  • 13
  • +0/-0
Apache systemd[1]: httpd.service failed
« on: July 27, 2025, 01:24:46 AM »
Good evening, gentlemen.
I'm here again, this time asking for help with an Apache that won't start.

to: systemctl status httpd.service
reply:
       httpd (pid 2295) already running
       systemd[1]: Failed to start The Apache systemd[1]: httpd.service failed.

I have Tomcat running on port 8080. But I disabled it in an attempt to find the Apache error.

Can you help me?
Thanks

Offline isotropic

  • *
  • 13
  • +0/-0
Re: Apache systemd[1]: httpd.service failed
« Reply #1 on: July 27, 2025, 01:40:40 AM »
Good evening, gentlemen.
I'm back to tell you that Apache is now working.
After so many uses of systemctl start, restart, status, etc. so much,
it started working again after a reboot.
Sorry for the inconvenience.
Best regards.

Offline Jean-Philippe Pialasse

  • *
  • 2,919
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Apache systemd[1]: httpd.service failed
« Reply #2 on: July 27, 2025, 06:08:42 PM »
we do not use httpd.service on sme but httpd-e-smith.service. 


trying to play with the one we do not use will conflict and fail the one we use. 

the name of the service is the same since sme 7

Offline isotropic

  • *
  • 13
  • +0/-0
Re: Apache systemd[1]: httpd.service failed
« Reply #3 on: July 28, 2025, 03:31:22 AM »
Hello friends, good evening.
I managed to start Apache. It's working. But I can't find the folders I usually use.
Can someone help me find the DocumentRoot folder and the configuration files?
Thank you.
Cheers.

Offline ReetP

  • *
  • 3,960
  • +6/-0
Re: Apache systemd[1]: httpd.service failed
« Reply #4 on: July 28, 2025, 01:45:37 PM »
But I can't find the folders I usually use.
Can someone help me find the DocumentRoot folder and the configuration files?

Please don't just go hacking wildly at config files - you will break things. Koozali SME server uses events, actions and templates to generate files auto,magically for you.

You will see this a lot - it is there for a good reason:

Code: [Select]
#------------------------------------------------------------
#        !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

Note the warning here:

https://wiki.koozali.org/Template-driven_configuration_system

Look in /etc/e-smith for more.

Also please have a longer read of the manual where it explains ibays etc.

https://wiki.koozali.org/SME_Server:Documentation:Administration_Manual:Chapter14

You might want to look at the this contrib as well

https://wiki.koozali.org/Webhosting

If you want to use custom folders/directories then you are going to have to start hacking about with httpd templates and I don't recommend you do that right now. Keep it simple and use an ibay.



...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline isotropic

  • *
  • 13
  • +0/-0
Re: Apache systemd[1]: httpd.service failed
« Reply #5 on: July 30, 2025, 03:38:09 AM »
Hello, ReetP, good evening.
ReetP, unfortunately, I gave the impression that I was modifying the SME Server's internals. But I'm not. First, because I don't have much knowledge of Linux. Second, because SME already has everything the user needs.
I needed to install two things via code: Java and Tomcat. Additionally, I'm going to add two RAID 1 hard drives and install BackupPC. And always using the 'how-to' instructions. That's all. Please believe that I don't want complications. I like SME for its simplicity.
Big hug.

Offline isotropic

  • *
  • 13
  • +0/-0
Re: Apache systemd[1]: httpd.service failed
« Reply #6 on: July 30, 2025, 05:29:49 AM »
Update: Instead of installing two disks in raid 1, I preferred to reinstall SME Server on the raid 1 disks. Much easier. Safer. Less invasive.
Awesome!!!