in the past it worked flawlessly, today gives this error:
* apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2022-02-28 12:56:31 CET; 2h 58min ago
Process: 19277 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 19277 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
feb 28 12:56:30 server3TW.zapto.org systemd[1]: Starting The Apache Webserver...
feb 28 12:56:31 server3TW.zapto.org start_apache2[19277]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using server3TW.zapto.org. Set the 'ServerName' directive globally to suppress this message
feb 28 12:56:31 server3TW.zapto.org start_apache2[19277]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
feb 28 12:56:31 server3TW.zapto.org start_apache2[19277]: AH00014: Configuration check failed
feb 28 12:56:31 server3TW.zapto.org systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
feb 28 12:56:31 server3TW.zapto.org systemd[1]: apache2.service: Failed with result 'exit-code'.
feb 28 12:56:31 server3TW.zapto.org systemd[1]: Failed to start The Apache Webserver.
I tried to create /var/log/apache2 but it doesn’t solved
how can I have http server working?
Which command did you use here? Please always post including the prompt/command line before the output, the output itself and the next prompt line. It communicates very trustworthy to your potential helpers who you are, where you are, what you did and what you got, without alterations, unabridged and complete. Now there is time spoild by a lot of guessing.
Since you didn’t provide enough details, remember to check a few things;
Do you have free space on / ? -> **df -h /
**2. Are the permissions correct? -> **ll /var/log/apache2/
**3. What’s the output of: -> journalctl -u apache2 -f
no commands, I went to yast>services manager>click on apache2 service>click on start> and result failed then click on show details and cpyed here the result
procuste@server3TW:~> ll /var/log/apache2/
total 0
procuste@server3TW:
but if in dolphin I add a label with permission I can read /var/log/apache2/ permissions as drwxr–r–
here is:
procuste@server3TW:~> journalctl -u apache2 -f
-- Logs begin at Mon 2022-02-28 10:31:10 CET. --
Feb 28 12:46:36 server3TW.zapto.org systemd[1]: **apache2.service: Main process exited, code=exited, st**
atus=1/FAILURE
Feb 28 12:46:36 server3TW.zapto.org systemd[1]: **apache2.service: Failed with result 'exit-code'.**
Feb 28 12:46:36 server3TW.zapto.org systemd[1]: **Failed to start The Apache Webserver.**
Feb 28 12:56:30 server3TW.zapto.org systemd[1]: Starting The Apache Webserver...
Feb 28 12:56:31 server3TW.zapto.org start_apache2[19277]: AH00558: httpd-prefork: Could not reliably
determine the server's fully qualified domain name, using server3TW.zapto.org. Set the 'ServerName' d
irective globally to suppress this message
Feb 28 12:56:31 server3TW.zapto.org start_apache2[19277]: (2)No such file or directory: AH02291: Cann
ot access directory '/var/log/apache2/' for main error log
Feb 28 12:56:31 server3TW.zapto.org start_apache2[19277]: AH00014: Configuration check failed
Feb 28 12:56:31 server3TW.zapto.org systemd[1]: **apache2.service: Main process exited, code=exited, st**
atus=1/FAILURE
Feb 28 12:56:31 server3TW.zapto.org systemd[1]: **apache2.service: Failed with result 'exit-code'.**
Feb 28 12:56:31 server3TW.zapto.org systemd[1]: **Failed to start The Apache Webserver.**
Note, you should define **ServerName **in /etc/apache2/default-server.conf to make one of the error messages go away and properly set the default host ( you should use whatever your full qualified hostname is from the outside, for example www.thisAINTaREALaddressIhope.com )