View Single Post
  #6  
Old 12th May 2009, 07:10
danuel danuel is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default httpd: bad user name ${APACHE_RUN_USER}

I noticed this issue on a new install (ubuntu 8.04, ISPConfig-2.2.30) after changing site domains a few times: Vhost.
ls -l /etc/apache2/vhosts/
total 168
-rw-r--r-- 1 root root 1990 2009-05-11 21:47 Vhosts_ispconfig.conf
-rw-r--r-- 1 root root 3529 2009-05-11 15:42 Vhosts_ispconfig.conf_11-05-09_15-42-47
-rw-r--r-- 1 root root 3529 2009-05-11 17:30 Vhosts_ispconfig.conf_11-05-09_17-30-39
-rw-r--r-- 1 root root 3529 2009-05-11 17:32 Vhosts_ispconfig.conf_11-05-09_17-32-03
... many more

httpd -t
httpd: bad user name ${APACHE_RUN_USER}
Not resolved after upgrade to ISPConfig-2.2.32. Content of Vhosts_ispconfig.conf

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.4.136:80
<VirtualHost 192.168.4.136:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
######################################
# Vhost: dev.PRIVATE.org:80
######################################
#
#
<VirtualHost 192.168.4.136:80>
ServerName dev.PRIVATE.org:80
ServerAdmin webmaster@PRIVATE.org
DocumentRoot /var/www/web9/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web9/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web9/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web9/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web9/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
<IfModule mod_dav.c>
Alias /webdav /var/www/web9/web
<Location /webdav>
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /var/www/web9/passwd.dav
Require valid-user
</Location>
</IfModule>
</VirtualHost>
#
#
#
Content of /etc/apache2/envars

# envvars - default environment variables for apache2ctl

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
Help please!

A few min after above, i deleted the ssl Vhosts then worked ok. But httpd -t still shows

httpd: bad user name ${APACHE_RUN_USER}


How do we install pre-existing SSL (key, crt, and ca_bundle/chain)?

Last edited by danuel; 12th May 2009 at 08:21. Reason: SSL problem
Reply With Quote