S
S
Sergey2017-08-25 11:33:52
Apache HTTP Server
Sergey, 2017-08-25 11:33:52

Apache not starting how to fix?

downloaded apache, connected virtual hosts, started configuring phpmyadmin tried to restart the server gave an error:

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details

looked at the logs:
-- Начат процесс запуска юнита apache2.service.
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]:  * Starting Apache httpd web server apache2
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]:  *
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]:  * The apache2 configtest failed.
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]: Output of config test was:
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration fi
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]: Action 'configtest' failed.
авг 25 11:20:41 seeyoga-EasyNote apache2[2259]: The Apache error log may have more information.
авг 25 11:20:41 seeyoga-EasyNote systemd[1]: apache2.service: Control process exited, code=exited status=1
авг 25 11:20:41 seeyoga-EasyNote systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Ошибка юнита apache2.service

I went into the configuration file and found this line:
IncludeOptional sites-enabled/*.conf
I can’t figure out what’s wrong, please tell me how to fix it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2017-08-25
@hardtime88

This line includes all files from sites-enabled/*.conf, so there is a syntax error in some .conf file in this directory.
Look at the log files from the server, maybe there will be something extra.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question