Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: isotropic on July 27, 2025, 01:24:46 AM

Title: Apache systemd[1]: httpd.service failed
Post by: isotropic 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
Title: Re: Apache systemd[1]: httpd.service failed
Post by: isotropic 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.
Title: Re: Apache systemd[1]: httpd.service failed
Post by: Jean-Philippe Pialasse 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
Title: Re: Apache systemd[1]: httpd.service failed
Post by: isotropic 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.
Title: Re: Apache systemd[1]: httpd.service failed
Post by: ReetP 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.



Title: Re: Apache systemd[1]: httpd.service failed
Post by: isotropic 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.
Title: Re: Apache systemd[1]: httpd.service failed
Post by: isotropic 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!!!