Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th February 2008, 14:46
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
Default Installation on Debian lenny fails due to new style of apache.conf

I recently updated apache2 to the version in "testing". The reason was that the version in Debian 4.0 "etch" did not support setting the charset of generated directory indexes. I continued to track apache2 in "testing" for some time. I was busy with other things and missed a couple of point releases of ISPConfig. Today I tried to upgrade from 2.2.18 to latest and greatest 2.2.21. The setup script bailed out with the error:
Code:
Checking the syntax of the httpd.conf...
httpd: bad user name ${APACHE_RUN_USER}
ERROR: The syntax of your httpd.conf is not ok! Please correct the error. The installation routine stops here!
The cause of the problem is that user and group are pulled from environment.
Code:
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
I am writing this for falko and till to be aware of the new style of Debian's apache.conf

I have changed them back to
Code:
User www-data
Group www-data
And now watching the setup script to do its job.
Reply With Quote
The Following 2 Users Say Thank You to tensor For This Useful Post:
falko (16th February 2008), RainForest (2nd May 2008)
Sponsored Links
  #2  
Old 7th July 2008, 00:34
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
Default

As of 2.2.23, the problem remains.
Reply With Quote
  #3  
Old 7th July 2008, 19:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

The problem was fixed in 2.2.23...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 8th July 2008, 18:09
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
Default

I will look into that. That may be my fault as I manually migrated ISPConfig installation from one server to another. This required a lot of manual labour including editing of /etc/passwd and other related files, manually copying the /home/admispcong and /root/ispconfig and dumping, editing (for new IPs) and restoring the ispconfig database.

Currently, this "installation" is at 2.2.21.

I will return to this problem on friday.
Reply With Quote
  #5  
Old 11th September 2008, 21:03
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
Default

The problem likely was that the code below was never called.
It may be skipped when the setup detected that the current invocation was an upgrade, I did not dig enough into code paths. It probably should create the link in any scenario: on upgrade and initial install...

Code:
  echo
  echo "########## WEB SERVER ##########"
  echo
  which httpd > /dev/null
  if [ $? != 0 ]; then
    which apache > /dev/null
    if [ $? == 0 ]; then
      ln -s `which apache` /usr/bin/httpd
    fi
    which apache2 > /dev/null
    if [ $? == 0 ]; then
      ln -s `which apache2` /usr/bin/httpd
    fi
  fi
As of 2.2.25 it is still an issue...
Reply With Quote
  #6  
Old 12th May 2009, 08: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 09:21. Reason: SSL problem
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 01:57
install fails, debian etch 4.0 edo660 Installation/Configuration 12 27th April 2007 03:40
Installation fails on Ubuntu 6.06 Jcorrea920 Installation/Configuration 2 23rd April 2007 21:14
Installation Error, Debian 3.1 yogi183 Installation/Configuration 6 23rd February 2007 17:11
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42


All times are GMT +2. The time now is 08:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.