Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: apache2: bad user name ${APACHE_RUN_USER}

  1. #21
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Beans
    3
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: apache2: bad user name ${APACHE_RUN_USER}

    "sudo /etc/init.d/apache2 restart"

    Thanks worked right away.

  2. #22
    Join Date
    Dec 2010
    Beans
    7

    Re: apache2: bad user name ${APACHE_RUN_USER}

    sudo apache2ctl restart
    sudo apache2ctl stop
    sudo apache2ctl start


  3. #23
    Join Date
    Oct 2012
    Beans
    1

    Re: apache2: bad user name ${APACHE_RUN_USER}

    Code:
    jeroen@jeroen-desktop:/etc/apache2$ apache2 -k restart
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    httpd not running, trying to start
    (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    I have corrected the FQDN error by adding
    Code:
    # httpd.conf
    ServerName my_servername
    Also, Apache starts as root and changes to the defined apache user; apachectl needs to be executed as root. If you shell into a remote server as root, you don't need sudo. On your local machine, you probably aren't root and need sudo or su.

  4. #24
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: apache2: bad user name ${APACHE_RUN_USER}

    What happens when you try this?
    Code:
    sudo servive apache2 restart
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  5. #25
    Join Date
    Aug 2005
    Beans
    2

    Re: apache2: bad user name ${APACHE_RUN_USER}

    Quote Originally Posted by AllanJP View Post
    Hey that helped, I wonder why that helped, and not when I: cd /etc/init.d/ and then typed: apache2 restart ?,
    Your shell will run the first executable apache2 file it finds. If you path has in it, in this order, "/usr/local/sbin:." the apache2 executable will be run from /usr/local/sbin/apache2 no matter where you've cd'ed to. If, however, your path has in it, in this order, ".:/usr/local/sbin" the apache2 startup script will be run from your present working directory, if it can be found there, first. In you case, /etc/init.d/.

    Whether apache2 is actually in either of these places depends upon your distribution and installations.

Page 3 of 3 FirstFirst 123

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
  •