A
A
Alan Kertz2019-04-19 17:35:22
linux
Alan Kertz, 2019-04-19 17:35:22

How to solve apache error [Solved]?

Hello,
Launched apache2 web server on raspberry pi 3b (Raspbian system). At first everything worked fine, but after 3 days the site stopped working.
Apache2 shows error:

Apr 19 15:55:53 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 19 15:55:53 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
Apr 19 15:55:53 raspberrypi systemd[1]: apache2.service: Unit entered failed state.
Apr 19 15:55:53 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.

If you reload apache the following message appears
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

journalctl -xe says:
-- Unit apache2.service has failed.
--
-- The result is failed.
Apr 19 16:27:48 raspberrypi systemd[1]: apache2.service: Unit entered failed sta
Apr 19 16:27:48 raspberrypi systemd[1]: apache2.service: Failed with result 'exi
Apr 19 16:27:48 raspberrypi sudo[2123]: pam_unix(sudo:session): session closed f
Apr 19 16:39:01 raspberrypi systemd[1]: Starting Clean php session files...
-- Subject: Unit phpsessionclean.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit phpsessionclean.service has begun starting up.
Apr 19 16:39:01 raspberrypi CRON[2200]: pam_unix(cron:session): session opened f
Apr 19 16:39:01 raspberrypi CRON[2205]: (root) CMD (  [ -x /usr/lib/php/sessionc
Apr 19 16:39:01 raspberrypi CRON[2200]: pam_unix(cron:session): session closed f
Apr 19 16:39:01 raspberrypi systemd[1]: Started Clean php session files.
-- Subject: Unit phpsessionclean.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit phpsessionclean.service has finished starting up.
--
-- The start-up result is done.
lines 2223-2245/2245 (END)
-- Unit apache2.service has failed.
--
-- The result is failed.
Apr 19 16:27:48 raspberrypi systemd[1]: apache2.service: Unit entered failed state.
Apr 19 16:27:48 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 19 16:27:48 raspberrypi sudo[2123]: pam_unix(sudo:session): session closed for user root
Apr 19 16:39:01 raspberrypi systemd[1]: Starting Clean php session files...
-- Subject: Unit phpsessionclean.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit phpsessionclean.service has begun starting up.
Apr 19 16:39:01 raspberrypi CRON[2200]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 19 16:39:01 raspberrypi CRON[2205]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Apr 19 16:39:01 raspberrypi CRON[2200]: pam_unix(cron:session): session closed for user root
Apr 19 16:39:01 raspberrypi systemd[1]: Started Clean php session files.
-- Subject: Unit phpsessionclean.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit phpsessionclean.service has finished starting up.
--
-- The start-up result is done.
~

The browser shows an error: ERR_CONNECTION_REFUSED
Website that is running on the server: arian.ml
I will be grateful in advance if you help me solve the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Samoilov, 2019-04-22
@HackerMaster05

Alan Kertz, judging by the logs: syntax error on the 14th line of /etc/apache2/sites-enabled/000-default-le-ssl.conf If there is nothing suspicious there, delete this line and type it again. Because \xc2\xa8 - non-breaking space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question