Every time I try to start httpd on CentOS 7 on my Google VPS, the following message always appears. can you help me?

Every time I try to start httpd on CentOS 7 on my Google VPS, the following message always appears. can you help me?

● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-09-08 13:12:27 UTC; 1min 21s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2019 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 2018 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2018 (code=exited, status=1/FAILURE)

Sep 08 13:12:27 centos-web systemd[1]: Starting The Apache HTTP Server…
Sep 08 13:12:27 centos-web httpd[2018]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
Sep 08 13:12:27 centos-web systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 08 13:12:27 centos-web kill[2019]: kill: cannot find process ""
Sep 08 13:12:27 centos-web systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 08 13:12:27 centos-web systemd[1]: Failed to start The Apache HTTP Server.
Sep 08 13:12:27 centos-web systemd[1]: Unit httpd.service entered failed state.
Sep 08 13:12:27 centos-web systemd[1]: httpd.service failed.

4 Replies

Address already in use: AH00072: make_sock: could not bind to address [::]:443

It looks like you have another web server running already, listening on port 443.

Maybe nginx?

You can check with ss -tlnp, look for 443 and the rightmost column will have process name.

then i kill the process?

roo@centos-web ~]$ ss -tlnp
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 100 127.0.0.1:25 :
LISTEN 0 128 *:22 *:*
LISTEN 0 100 ::1:25 :::*
LISTEN 0 70 :::33060 :::*
LISTEN 0 128 :::3306 :::*
LISTEN 0 128 :::22 :::*

Hmm, I don't see any other server (in your output of ss). Strange.

Can you try ss -tlnp with sudo? I mean sudo ss -tlnp?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct