T
T
Twelfth Doctor2017-05-01 18:30:07
Apache HTTP Server
Twelfth Doctor, 2017-05-01 18:30:07

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!

ports.conf:
# 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

Virtual host:
<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

1 answer(s)
T
Twelfth Doctor, 2017-05-01
@verdex

Should have
replaced
<VirtualHost :*81>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question