Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Apache2 failed to start

  1. #1
    Join Date
    Jul 2021
    Beans
    17

    Apache2 failed to start

    Yesterday I installed Apache and got the “it works” page using localhost in my browser. Today it wont start. Being new to Linux I don't have the first idea on where to start. I've tried removing and re-installing Apache using the Muon Package Manager but no joy.

    Any suggestions on where to start?

  2. #2
    Join Date
    May 2010
    Beans
    3,246

    Re: Apache2 failed to start

    What is the output of:
    Code:
    ps -ef | grep apache | grep -v apache
    apt-cache policy apache2
    lsb_release -a
    uname -a
    Thanks

  3. #3
    Join Date
    Aug 2017
    Location
    melbourne, au
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Apache2 failed to start

    Question also appears to be asked here - https://discourse.lubuntu.me/t/new-i...-to-start/2727

  4. #4
    Join Date
    Jul 2021
    Beans
    17

    Re: Apache2 failed to start

    Code:
    ricobasso@D620-02:~$ apt-cache policy apache2
    apache2:                                                                     
      Installed: 2.4.46-4ubuntu1.1                                               
      Candidate: 2.4.46-4ubuntu1.1                                               
      Version table:                                                             
     *** 2.4.46-4ubuntu1.1 500                                                   
            500 http://gb.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
            500 http://gb.archive.ubuntu.com/ubuntu hirsute-security/main amd64 Packages
            100 /var/lib/dpkg/status                                             
         2.4.46-4ubuntu1 500                                                     
            500 http://gb.archive.ubuntu.com/ubuntu hirsute/main amd64 Packages  
    ricobasso@D620-02:~$ lsb_release -a                      
    No LSB modules are available.                                                
    Distributor ID: Ubuntu                                                                                                       
    Description:    Ubuntu 21.04                                                                                                 
    Release:        21.04                                                                                                        
    Codename:       hirsute
    ricobasso@D620-02:~$ uname -a
    Linux D620-02 5.11.0-34-generic #36-Ubuntu SMP Thu Aug 26 19:22:09 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    ricobasso@D620-02:~$ ^C
    ricobasso@D620-02:~$
    is this what you needed to see?

  5. #5
    Join Date
    Jul 2021
    Beans
    17

    Re: Apache2 failed to start

    yes . why are there two Lubuntu fora?

  6. #6
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Apache2 failed to start

    yes . why are there two Lubuntu fora?
    The Ubuntu forum has support and discussion sections not only for Ubuntu users but also for users of Linux distributions based on Ubuntu but with a different desktop environment. There is even a section for other operating systems. And there are several sections for specialist categories.

    The developers of other distributions based on Ubuntu (we call them Ubuntu flavours) sometimes like to provide their own support channel. It all depends upon how many people are actually involved in helping to develop that distribution as to whether they have the resources to do this.

    Your problem is not connected especially to the desktop environment that you are using. It is not a Lubuntu or a Ubuntu issue but an Apache2 issue. Which brings an end to my involvement in this problem.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  7. #7
    Join Date
    Jul 2021
    Beans
    17

    Re: Apache2 failed to start

    What was the purpose of asking me to run this code?

  8. #8
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: Apache2 failed to start

    What code?
    You mean the code in post #2?
    I would think it's to see some very basic information about the system and the apache2 version installed.

    That said if you use the systemctl command as posted in the lubuntu forum thread it might show something useful.
    You can use the status option like
    Code:
    systemctl status apache2
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Apache2 failed to start

    After running,
    Code:
    sudo systemctl status apache2
    You can run
    Code:
    journalctl -xe
    to see any failures.

    Typically, failures to start are due to incorrect modification of a vhost file or some other apache settings in /etc/apache2/
    or incorrect directory permissions where ever the files are stored. Incorrect file and directory permissions are an excellent way to have a system be hacked.

    Running a web server isn't exactly something that someone new to Unix-like OSes should be doing. It is fine, provided the service isn't available outside the LAN. We all start learning somewhere, but skipping over basic Unix skills and running a web server is a mistake if the intent is to make a website for the internet.

  10. #10
    Join Date
    Jul 2021
    Beans
    17

    Re: Apache2 failed to start

    Running a web server isn't exactly something that someone new to Unix-like OSes should be doing. It is fine, provided the service isn't available outside the LAN. We all start learning somewhere, but skipping over basic Unix skills and running a web server is a mistake if the intent is to make a website for the internet.
    that's not my intention at all. I have a trainer bike in my garage where I run an app called Fulgaz. It uses some sort of mp4 file which streams video to my Apple TV + TV and this controls the drag and tilt of the trainer bike according to the terrain in the video. It's very good but my internet connection is poor.

    My garage is a fair way from my house and I can't have permanent cabling (mains or ethernet) to it. So, the plan is to d/l the mp4 files and stream them locally from a laptop as the Apple TV has very limited storage. I want to re-purpose an old not very powerful laptop, hence the idea to install a light version of Linux (lubuntu). I need Samba to get files on and off a Windows PC and I need Apache to stream to the Apple TV.

    That's it. The laptop will only be on my LAN with very restricted sharing.

Page 1 of 2 12 LastLast

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
  •