Get the App
SLTechnology News&Howtos  ›  Servers  › 

Httpd service for troubleshooting

Shulou Source: shulou.com Published: 2022-06-03 03:09:38 09月22日 Update

1. View service status

#systemctl status httpd

(1) Configuration file error

Syntax error on line 364 of /etc/httpd/conf/httpd.conf:

Invalid command 'adModule', perhaps misspelled or defined by a module not included in the server configuration

Open the configuration file and correct the syntax errors.

Start httpd service

#service httpd start

The problem has been fixed.

(2) Port number occupied or modified

Check whether the port number is occupied

#netstat -antlp | grep 80

Offer two options, kill the hogging process or change the port number for httpd. I will not repeat it here.

(3) Firewall blocking is recommended to directly close the firewall #service iptables stop

or open ports.

#firewall-cmd --add-service=http

Tags: Services slogans errors configurations files syntax firewalls firewalls failures commands suggestions ideas servers modules status ports processes open Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL Shulou Technology Xiaomi Redmi