phpapacheserver

apache2 service Failed on restart - Failed to start apache2.service: Unit not found


when I try to restart the apache server I got following response.

Redirecting to /bin/systemctl start apache2.service

Failed to start apache2.service: Unit not found.


Solution

  • You are using different service of apache.

    run this if you are using the same service.

    systemctl restart httpd
    

    or

    apachectl restart