Answer the question
In order to leave comments, you need to log in
Why can't restart Apache?
Hello! For some reason I can't restart the Apache server
[email protected]:~$ sudo apache2ctl graceful
[Mon May 01 18:26:28.737751 2017] [core:error] [pid 6971] (EAI 2)Name or service not known: AH00547: Could not resolve host name :*81 -- ignoring!
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 81
<IfModule ssl_module>
Listen 444
</IfModule>
<IfModule mod_gnutls.c>
Listen 444
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
<VirtualHost :*81>
ServerName khcp.loc
ServerAlias www.khcp.loc
DocumentRoot /home/dart/sites/khcp/web
DirectoryIndex index.php
AssignUserID dart dart
<Directory /home/dart/sites/khcp/web>
Require all granted
</Directory>
Errorlog /home/dart/sites/khcp/apache.error.log
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question