-1

I got a Suse system with a apache2 web server. When i try to start apache i get a error, when i ask the status of apache2 i get the information that httpd not run. So now i try to start httpd

systemctl start httpd

but that not works, so i ask

systemctl status httpd

The result is:

httpd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

How can i start httpd corecly ?

  • 2
    Please update your question with the complete output from systemctl status httpd. You should also review the system logs for specific messages that are relevant and include them as well. – 0xSheepdog Apr 23 '19 at 14:58
  • 1
    And if you really want to blow 0xSheepdog's mind, you can put the output of head -n 11 /usr/share/doc/packages/apache2/README-instances.txt in the question too. (-: – JdeBP Apr 23 '19 at 15:55

1 Answers1

2

JdeBP has already commented in this direction, so I thought I'd flesh it out into an Answer.

The SUSE README for Apache says, in part:

Dear System Administrator,

SUSE Apache package comes with the possibility to run more instances of Apache process on one system.

As always,

systemctl start apache2

activates default instance of the server, which expects sysconfig setting in /etc/sysconfig/apache2. If this file is not present, or APACHE_HTTPD_CONF in there is not set, then it requires /etc/apache2/httpd.conf.

... which seems to point out the error; you've attempted to start a unit named "httpd" when the unit is actually named "apache2". That also lines up with the evidence you saw, which said:

Reason: No such file or directory

... since there is no httpd.service file.

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255