I
I
Islam Stanaliev2016-12-18 17:44:48
Apache HTTP Server
Islam Stanaliev, 2016-12-18 17:44:48

Apache2 failed, syntax error. How to solve the problem?

When trying to create a virtual host, I did something wrong. Honestly, I don't know what I did. Created directories, configurations... entered the following in the terminal: sudo service apache2 reload. To which he replied: apache2.service is not active, cannot reload.
I entered the following: systemctl status apache2.service
620589a2ffa04f0eac0bb0f9d74b6750.pngfce03fe483ba427d9fa94ba0582a9254.png
There, as far as I understand, it says that the error is in line 219, but honestly, I did not understand how to solve it. Help me please. How to restore everything? Or reload Apache and reconfigure everything? 997d37ad40d14048b13d86b14e6783ad.png
219 line highlighted (apache2.conf)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kuznetsov, 2016-12-18
@DarkRaven

See what is stored in the sites-enabled.conf file. There is a chance that you will find your problem in it.
And also check if Apache has the rights to read this file. Perhaps the file exists, but it cannot read it and throws an error.
On the second screen, line 12 - there is not all the text of the error that is happening.

I
Islam Stanaliev, 2016-12-18
@kindrain1998

5c4a4b77cbc94e348d5c7694ec2a79c8.png
apachectl configtest result
ec18a8196276448c805fa2b48de0b9ae.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question