Results 1 to 6 of 6

Thread: Apache server not working

  1. #1
    Join Date
    Dec 2016
    Beans
    5

    Apache server not working

    I read a lot of threads and none of them is helping me. I installed apache server and everything was working fine but then I did something (which i don't remember what) and it is since showing error
    please help me. My apache server is not running and I getting these outputs for following commands

    sudo service apache2 status
    1.png

    sudo service apache2 restart
    2.png


    apache2ctl /etc/apache2/configtest


    what should I do? Please help.
    Steps I have already taken:
    1. Removed all apache2 files multiple times to hard uninstall it and reinstalled it again and again
    Last edited by ay2306; March 13th, 2018 at 02:44 PM. Reason: added more output

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Apache server not working

    I don't know why it cannot find /usr/sbin/apache2. That should be installed when you run "sudo apt install apache2". Try removing and reinstalling the apache2 package again, then check to see whether the executable /usr/sbin/apache2 exists.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Apr 2008
    Location
    Birmingham UK
    Beans
    610
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Apache server not working

    try
    Code:
    ls -la /usr/sbin
    to see if apache2 is there, and what its permissions are.
    ****************************
    ****************************
    The sig between the asterisks is SO COOL that only REALLY COOL people can even see it!

  4. #4

    Re: Apache server not working

    in a terminal, issue
    Code:
    apache2ctl -S
    and show us the output please.
    Windows assumes the user is an idiot.
    Linux demands proof.

  5. #5
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Apache server not working

    Thread moved to Server Platforms.

  6. #6
    Join Date
    Mar 2018
    Beans
    2

    Re: Apache server not working

    cat /etc/apache2/apache2.conf
    apache2ctl configtest

    what do you have?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •