Article 6D6W2 apache2 start problems after update

apache2 start problems after update

by
mike20
from LinuxQuestions.org on (#6D6W2)
I have a problem with how to set up an apache2 web server.
I had it running a while ago but after the update to Leap 15.5 it seems broken. It was just a test side so nothing important.
When I try to config it with Yast I get the error message icannot adjust apache2 servicei
After uninstalling the package, deleting all config files, and reinstalling Apache again I havenit made any progress. I had it working but I donit know what happened.

Code:# service apache2 start
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.Code:# service apache2 status
i apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-07-22 10:29:59 MDT; 3s ago
Process: 9991 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=127)
Main PID: 9991 (code=exited, status=127)

Jul 22 10:29:58 home01 systemd[1]: Starting The Apache Webserver...
Jul 22 10:29:58 home01 start_apache2[9993]: readlink: missing operand
Jul 22 10:29:58 home01 start_apache2[9993]: Try 'readlink --help' for more information.
Jul 22 10:29:59 home01 start_apache2[10001]: readlink: missing operand
Jul 22 10:29:59 home01 start_apache2[10001]: Try 'readlink --help' for more information.
Jul 22 10:29:59 home01 start_apache2[9991]: /usr/sbin/start_apache2: line 174: /usr/sbin/httpd: No such file or directory
Jul 22 10:29:59 home01 systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Jul 22 10:29:59 home01 systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul 22 10:29:59 home01 systemd[1]: Failed to start The Apache Webserver.Code:# systemctl status apache2.service
i apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-07-22 10:29:59 MDT; 49s ago
Process: 9991 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=127)
Main PID: 9991 (code=exited, status=127)

Jul 22 10:29:58 home01 systemd[1]: Starting The Apache Webserver...
Jul 22 10:29:58 home01 start_apache2[9993]: readlink: missing operand
Jul 22 10:29:58 home01 start_apache2[9993]: Try 'readlink --help' for more information.
Jul 22 10:29:59 home01 start_apache2[10001]: readlink: missing operand
Jul 22 10:29:59 home01 start_apache2[10001]: Try 'readlink --help' for more information.
Jul 22 10:29:59 home01 start_apache2[9991]: /usr/sbin/start_apache2: line 174: /usr/sbin/httpd: No such file or directory
Jul 22 10:29:59 home01 systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Jul 22 10:29:59 home01 systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul 22 10:29:59 home01 systemd[1]: Failed to start The Apache Webserver.Code:# journalctl -xeu apache2.service
Jul 22 10:21:42 home01 systemd[1]: Starting The Apache Webserver...
Subject: A start job for unit apache2.service has begun execution
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

A start job for unit apache2.service has begun execution.

The job identifier is 11285.
Jul 22 10:21:42 home01 start_apache2[9671]: readlink: missing operand
Jul 22 10:21:42 home01 start_apache2[9671]: Try 'readlink --help' for more information.
Jul 22 10:21:42 home01 start_apache2[9679]: readlink: missing operand
Jul 22 10:21:42 home01 start_apache2[9679]: Try 'readlink --help' for more information.
Jul 22 10:21:42 home01 start_apache2[9669]: /usr/sbin/start_apache2: line 174: /usr/sbin/httpd: No such file or directory
Jul 22 10:21:42 home01 systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Subject: Unit process exited
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

An ExecStart= process belonging to unit apache2.service has exited.

The process' exit code is 'exited' and its exit status is 127.
Jul 22 10:21:42 home01 systemd[1]: apache2.service: Failed with result 'exit-code'.
Subject: Unit failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Jul 22 10:21:42 home01 systemd[1]: Failed to start The Apache Webserver.
Subject: A start job for unit apache2.service has failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

A start job for unit apache2.service has finished with a failure.

The job identifier is 11285 and the job result is failed.
Jul 22 10:22:30 home01 systemd[1]: Starting The Apache Webserver...
Subject: A start job for unit apache2.service has begun execution
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

A start job for unit apache2.service has begun execution.

The job identifier is 11602.
Jul 22 10:22:30 home01 start_apache2[9711]: readlink: missing operand
Jul 22 10:22:30 home01 start_apache2[9711]: Try 'readlink --help' for more information.
Jul 22 10:22:30 home01 start_apache2[9719]: readlink: missing operand
Jul 22 10:22:30 home01 start_apache2[9719]: Try 'readlink --help' for more information.
Jul 22 10:22:30 home01 start_apache2[9709]: /usr/sbin/start_apache2: line 174: /usr/sbin/httpd: No such file or directory
Jul 22 10:22:30 home01 systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Subject: Unit process exited
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

An ExecStart= process belonging to unit apache2.service has exited.

The process' exit code is 'exited' and its exit status is 127.
Jul 22 10:22:30 home01 systemd[1]: apache2.service: Failed with result 'exit-code'.
Subject: Unit failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Jul 22 10:22:30 home01 systemd[1]: Failed to start The Apache Webserver.
Subject: A start job for unit apache2.service has failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

A start job for unit apache2.service has finished with a failure.

The job identifier is 11602 and the job result is failed.
Jul 22 10:29:58 home01 systemd[1]: Starting The Apache Webserver...
Subject: A start job for unit apache2.service has begun execution
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

A start job for unit apache2.service has begun execution.

The job identifier is 12240.
Jul 22 10:29:58 home01 start_apache2[9993]: readlink: missing operand
Jul 22 10:29:58 home01 start_apache2[9993]: Try 'readlink --help' for more information.
Jul 22 10:29:59 home01 start_apache2[10001]: readlink: missing operand
Jul 22 10:29:59 home01 start_apache2[10001]: Try 'readlink --help' for more information.
Jul 22 10:29:59 home01 start_apache2[9991]: /usr/sbin/start_apache2: line 174: /usr/sbin/httpd: No such file or directory
Jul 22 10:29:59 home01 systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Subject: Unit process exited
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

An ExecStart= process belonging to unit apache2.service has exited.

The process' exit code is 'exited' and its exit status is 127.
Jul 22 10:29:59 home01 systemd[1]: apache2.service: Failed with result 'exit-code'.
Subject: Unit failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Jul 22 10:29:59 home01 systemd[1]: Failed to start The Apache Webserver.
Subject: A start job for unit apache2.service has failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

A start job for unit apache2.service has finished with a failure.

The job identifier is 12240 and the job result is failed.Here there error message from the yast module http server
iFile /etc/sysconfig/apache2, /etc/apache2/default-server.conf has been changed manually.i
I deleted those files before uninstalling and it created new files. I donit know what I should have changed manually in them.

What am I missing?
Thank you
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments