Score:0

Cannot start up Apache server after certificate replacement

by flag

After successfully generating a new key and cer file for my Apache web server, i placed them in the specified conf folders and moved the ones currently there. The server has refused to come up. i have granted permission, yet the server refused to come up. Hence my site is down. See error log below and my specific conf.

 **apache2$ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Fri 2022-02-04 19:14:37 GMT; 3min 43s ago
  Process: 70755 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
  Process: 60022 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
  Process: 72282 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 70740 (code=exited, status=0/SUCCESS)**

I have tried to grant permission to the key file and folder, yet it has not come up. Kindly assist please .

eg flag
Can you paste more log contents, i.e. the recent entries from `/var/log/apache2/error.log`? Permissions could be - maybe they're too lax. I think the key file needs to have very restrictive permissions (600), owned by root.
callistus Iwuagwu avatar
by flag
Thank you team. I realized the certificate file i was using did not match the key. I had to do a validation and found the matching file. It has been deployed and the server restarted now.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.