Results 1 to 10 of 25

Thread: apache2: bad user name ${APACHE_RUN_USER}

Threaded View

  1. #1
    Join Date
    Jul 2007
    Beans
    5

    apache2: bad user name ${APACHE_RUN_USER}

    I am having this problem both on Ubuntu server 8.04 with LAMP, and ubuntu destkop 8.04 with Apache2. I am not having the problem with Debian4 on the same PC.

    I just installed a fresh copy of ubuntu server 8.04 on my pc, with LAMP and Samba enabled. Now it seems to work, but whenever i try to restart apache i get this error:
    Code:
    jeroen@jeroen-desktop:/etc/apache2$ apache2 -k restart
    apache2: bad user name ${APACHE_RUN_USER}
    .
    The APACHE_RUN_USER var correctly refers to www-data in my /envvars file (i didnt touch that file or anything).
    If you google this error, you get the advice to replace the 'User' and 'Group' variable in the config file by:
    User www-data
    Group www-data

    However, when i do this, i get these errors:
    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
    There are probably also ways to fix that, but why doesnt it work out of the box, like it should? What did i do wrong? Is there an easy way to fix this?
    Last edited by jeroenisblij; May 23rd, 2008 at 09:57 AM.

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
  •