Author Topic: Apache Webserver not working and shows error 502  (Read 1479 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache Webserver not working and shows error 502
« on: January 30, 2023, 01:14:09 PM »
i was installing a new wordpress on my subdomain and all the sudden i got error 502 and when i went back to server dashboard i found that apache is not working and when i start it i got this message

((Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.))


httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2023-01-30 13:07:09 UTC; 2min 58s ago
  Process: 21737 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Jan 30 13:07:09 server2.naptree.com systemd[1]: Starting Web server Apache...
Jan 30 13:07:09 server2.naptree.com apachectl[21737]: (20014)Internal error (specific information not available): AH00058: Error retrieving pid ...tpd.pid
Jan 30 13:07:09 server2.naptree.com apachectl[21737]: AH00059: Remove it before continuing if it is corrupted.
Jan 30 13:07:09 server2.naptree.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 30 13:07:09 server2.naptree.com systemd[1]: Failed to start Web server Apache.
Jan 30 13:07:09 server2.naptree.com systemd[1]: Unit httpd.service entered failed state.
Jan 30 13:07:09 server2.naptree.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


please help me this my the only work for me

Offline
*****
Re: Apache Webserver not working and shows error 502
« Reply #1 on: January 30, 2023, 05:55:03 PM »
Can you give us:
Code: [Select]
systemctl status -i httpd.serviceand
Code: [Select]
journalctl -xeAlso a tail -25 of your Apache error_log would be helpful, too.