Results 1 to 7 of 7

Thread: LAMPP - starting Apache problem

  1. #1
    Join Date
    May 2006
    Beans
    10

    LAMPP - starting Apache problem

    Hi. I've installed Lampp 2 ways. First with regular downloading, extracting and starting everything with
    sudo /opt/lampp/lampp start
    command. The result was XAMPP: Another web server daemon is already running.

    Then I installed with
    sudo tasksel install lamp-server
    command. I restarted the machine, and tried with http://localhost in browser, but nothing showed up.

    In console I typed
    sudo /etc/init.d/apache2 restart
    , and got
    * Restarting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    [fail]
    I also have installed and running VMware Server, which is accessible at 127.0.0.1:8333, and I think this is the problem for me, not being able to start up the Apache.

    I need help determining what is the problem, and how to solve it.

  2. #2
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: LAMPP - starting Apache problem

    80 port is already in use and you need to "release" it.

    Code:
    sudo /opt/lampp/lampp stop
    sudo /etc/init.d/apache2 restart

  3. #3
    Join Date
    May 2006
    Beans
    10

    Re: LAMPP - starting Apache problem

    credobyte, thank you for helping. Indeed port 80 is already in use, but not by Apache. I tried your commands before, and did so again now, and the result is the same. I think VMware server or something else is using port 80, but I don't know how to find out what is using it, and then how to reconfigure Apache or the other application (which is using port 80), to work on some other port.

  4. #4
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: LAMPP - starting Apache problem

    httpd.conf ( Windows ) or apache2.conf ( Ubuntu ). Look for "Listen" and change 80 to whatever you wan't ( 666 ).

  5. #5
    Join Date
    Feb 2008
    Location
    Hamilton, Canada
    Beans
    Hidden!

    Re: LAMPP - starting Apache problem

    You have too many web servers running, and they can not all listen on the same port. Either do as credybyte says, and change the port, or shutdown/uninstall the other unused web servers.

    Contrary to popular opinion, you cannot simply install more programs to make a problem go away.

  6. #6
    Join Date
    Jun 2009
    Location
    /home
    Beans
    19

    Re: LAMPP - starting Apache problem

    I think you could change in the file
    Code:
    /etc/apache2/ports.conf
    the Listen directive to 8000:
    Code:
    Listen 8000
    or whatever port you want, also check the
    Code:
    NameVirtualHost *:
    statement, it has to match
    Code:
     ./sites-enabled/000-default
    ...it is most likely the XAMPP using port 80, I haven't used it before, so I wouldn't know what to do there; I know its apache-based, so it probably uses a similar config.

    also, instead of restarting apache use:
    Code:
    sudo /etc/init.d/apache2 reload
    to load the new configuration, and then
    Code:
    sudo /etc/init.d/apache2 restart
    That's what I can see, I hope it was helpful...

  7. #7
    Join Date
    May 2006
    Beans
    10

    Talking Re: LAMPP - starting Apache problem

    Thank you all for helping. I did as el.otro suggested, and now it all works fine. Just needed to change NameVirtualHost *: to 8000 both in /etc/apache2/ports.conf and /etc/apache2/sites-enabled/000-default, and needed to CHMOD /var/WWW.

    Thanks again.

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
  •