Apache Httpd installation error AH00558

Posted May 25, 20202 min read

 Httpd       

[root@vps-f2a02f66 vhosts]# systemctl status httpd.service
  httpd.service - The Apache HTTP Server
   Loaded:loaded(/usr/lib/systemd/system/httpd.service; disabled; vendor preset:disabled)
  Drop-In:/usr/lib/systemd/system/httpd.service.d
         php-fpm.conf
   Active:failed(Result:exit-code) since Sun 2020-05-24 16:56:11 UTC; 12min ago
 Docs:man:httpd.service(8)
  Process:17168 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND(code=exited, status=1/FAILURE)
 Main PID:17168(code=exited, status=1/FAILURE)
   Status:"Reading configuration..."
  CPU:44ms

May 24 16:56:11 vps-f2a02f66.vps.ovh.ca systemd[1]:Starting The Apache HTTP Server...
May 24 16:56:11 vps-f2a02f66.vps.ovh.ca httpd[17168]:AH00558:httpd:Could not reliably determine the server's fully qualified domain name, using vps-f2a02f66.vps.ovh.ca. Set the 'ServerName' directive globally to suppress this >
May 24 16:56:11 vps-f2a02f66.vps.ovh.ca systemd[1]:httpd.service:Main process exited, code=exited, status=1/FAILURE
May 24 16:56:11 vps-f2a02f66.vps.ovh.ca systemd[1]:httpd.service:Failed with result 'exit-code'.
May 24 16:56:11 vps-f2a02f66.vps.ovh.ca systemd[1]:Failed to start The Apache HTTP Server.

' rel="nofollow noreferrer noopener" href='https://cdn.ossez.com/discourse-uploads/original/1X/9c949edf184a3760fae97de2e88285bf918e43f0.jpeg'> httpd-error-01

vi /etc/httpd/conf/httpd.conf

 ServerName localhost:80   localhost          

' rel="nofollow noreferrer noopener" href='https://cdn.ossez.com/discourse-uploads/original/1X/1c1b220f015431e626dde9694824e17a6c3b7801.jpeg'> httpd-error-02