HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Problems upgrading to ISPConfig-2.2.33 (http://www.howtoforge.com/forums/showthread.php?t=40531)

zalo 29th October 2009 23:58

Problems upgrading to ISPConfig-2.2.33
 
Tried to upgrade to version 2.2.33 today but ran in to some problems. I'm running SUSE 10.3 but have never seen this problem before.

The installation stopped after a few seconds and the following error massage was displayed:

Code:

NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Do you accept the licence? [y/n]y

Checking the syntax of the httpd.conf...
./setup2: line 710: httpd: command not found
ERROR: The syntax of your httpd.conf is not ok! Please correct the error. The installation routine stops here!

Could anyone help me solve this problem? or have anyone seen this before?

Thanks
Zalo

till 30th October 2009 08:55

Did you run the script as root user? Make sure that you are logged in as root and dont use sudo.

zalo 30th October 2009 10:20

Was logged in as root when the problem accrued.

Can not see any problems in my httpd.conf file either.

Code:

### Global Environment ######################################################
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests.

# run under this user/group id
Include /etc/apache2/uid.conf

# - how many server processes to start (server pool regulation)
# - usage of KeepAlive
Include /etc/apache2/server-tuning.conf

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
ErrorLog /var/log/apache2/error_log

# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf

# IP addresses / ports to listen on
Include /etc/apache2/listen.conf

# predefined logging formats
Include /etc/apache2/mod_log_config.conf

# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf

# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf

# optional cookie-based user tracking
# read the documentation before using it!!
Include /etc/apache2/mod_usertrack.conf

# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf

# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf

# set up (customizable) error responses
Include /etc/apache2/errors.conf

# global (server-wide) SSL configuration, that is not specific to
# any virtual host
Include /etc/apache2/ssl-global.conf

# forbid access to the entire filesystem by default
<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php5 index.php4 index.php3 index.pl index.html.var index.aspx default.aspx

### 'Main' server configuration #############################################
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
Include /etc/apache2/default-server.conf


# Another way to include your own files
#
# The file below is generated from /etc/sysconfig/apache2,
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
# APACHE_CONF_INCLUDE_DIRS
Include /etc/apache2/sysconfig.d/include.conf


### Virtual server configuration ############################################
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
Include /etc/apache2/vhosts.d/*.conf


# Note: instead of adding your own configuration here, consider
#      adding it in your own file (/etc/apache2/httpd.conf.local)
#      putting its name into APACHE_CONF_INCLUDE_FILES in
#      /etc/sysconfig/apache2 -- this will make system updates
#      easier :)

<Directory /var/www/sharedip>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig

<Directory /srv/www/*/web>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

<Directory /srv/www/*/user/*/web>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

<Directory /srv/www/*/cgi-bin>
    Options ExecCGI -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

This is the part of the script were the upgrade fails:

Code:

  echo $q_httpd_syntax_check
  if [ -f /etc/apache2/envvars ]; then
    . /etc/apache2/envvars && httpd -t
  else
    httpd -t
  fi
  if [ $? != 0 ]; then
    error "$q_httpd_syntax_check_not_ok";
  fi
  echo $q_httpd_syntax_check_ok
  log "httpd syntax ok!"

Do anyone have any ideas?

Regards
Zalo

till 30th October 2009 10:31

The problem is not the httpd.conf, the problem is that the httpd binary or the symlink to it is missing.

Find out how your apache binary is named e.g. by running:

which apache2
which apache
which httpd

and then create a symlink like:

ln -s /usr/bin/apache2 /usr/bin/httpd

where /usr/bin/apache2 has to be replaced with the path to the httpd binary on your server.

zalo 30th October 2009 10:34

Can not find any "envvars" file in the /etc/apache2 directory. is this file required?

Thanks
Zalo

zalo 30th October 2009 10:40

which apache2:
Code:

websrv01:~ # which apache2
which: no apache2 in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin)

which apache
Code:

websrv01:~ # which apache
which: no apache in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin)

which httpd:
Code:

websrv01:~ # which httpd
which: no httpd in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin)


Sorry, but did not quite understand that. Could you help me create the symlink?

Thanks for the quick reply.

Regards
Zalo

falko 31st October 2009 13:17

Hm... It seems as if Apache isn't installed on your system. Can you check with YaST?

zalo 31st October 2009 21:12

Apache version 2.2.4-70.11 is installed according to YAST. :confused:


This is the comments found under the Apache-devel in YAST. Is any of these "/usr/sbin" directories the one that I need?
Code:

│apache2-devel - Apache 2.0 Header and Include Files                        ┬
 │Version: 2.2.4-70.11 Installed: 2.2.4-70.11 Size: 616.2 K Media No.: 0      │
 │License: The Apache Software License                                        │
 │Package Group: Development/Libraries/C and C++                              │
 │Provides: apache2-devel == 2.2.4-70.11, /usr/sbin/apxs2-event,              ┴
 │/usr/sbin/apxs2-prefork, /usr/sbin/apxs2, /usr/sbin/apxs2-worker

Thanks
Zalo

falko 1st November 2009 16:37

What's the output of
Code:

updatedb
locate apache
locate httpd

?

zalo 1st November 2009 18:25

Is there any way to narrow the search a litle bit? The "locate apache" command displays too many pages of files and folders so I cannot copy the all out for you.

Zalo


All times are GMT +2. The time now is 01:03.

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