Apach2 restart failed

Hi
i am try to issu lets encrypt SSL after 2/3 days facing error apache2 not restar error
can anyone help me
note not much knowledge cli

root@digitechpk:~# systemctl status apache2
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2023-12-21 16:39:47 UTC; 4min 20s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 7880 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 63ms

Dec 21 16:39:47 digitechpk.us.to systemd[1]: Starting The Apache HTTP Server...
Dec 21 16:39:47 digitechpk.us.to apachectl[7882]: AH00526: Syntax error on line 32 of /etc/apac>
Dec 21 16:39:47 digitechpk.us.to apachectl[7882]: SSLCertificateChainFile: file '/home/admin/co>
Dec 21 16:39:47 digitechpk.us.to systemd[1]: apache2.service: Control process exited, code=exit>
Dec 21 16:39:47 digitechpk.us.to systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 21 16:39:47 digitechpk.us.to systemd[1]: Failed to start The Apache HTTP Server.

Check Lin 32 of this file…

how to check this file
sorry for having less knowledge of cli

sudo nano /etc/apac is blank

The output you posted is not showing the full line.

Execute this command to view the entire lines:

systemctl --no-pager -l status apache2
1 Like
root@digitechpk:~# systemctl --no-pager -l status apache2
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2023-12-21 18:13:12 UTC; 4min 21s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 42015 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 19ms

Dec 21 18:13:12 digitechpk.us.to systemd[1]: Starting The Apache HTTP Server...
Dec 21 18:13:12 digitechpk.us.to apachectl[42017]: AH00526: Syntax error on line 32 of /etc/apache2/conf.d/domains/digitechpk.us.to.ssl.conf:
Dec 21 18:13:12 digitechpk.us.to apachectl[42017]: SSLCertificateChainFile: file '/home/admin/conf/web/digitechpk.us.to/ssl/digitechpk.us.to.ca' does not exist or is empty
Dec 21 18:13:12 digitechpk.us.to systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 21 18:13:12 digitechpk.us.to systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 21 18:13:12 digitechpk.us.to systemd[1]: Failed to start The Apache HTTP Server.

To view line 32 edit file with vi, nano… or execute this command:

sed -n '32p' /etc/apache2/conf.d/domains/digitechpk.us.to.ssl.conf
1 Like

is working remove ssl
thanks sahsanu

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.