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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th October 2009, 23:58
zalo zalo is offline
Member
 
Join Date: Jan 2006
Posts: 33
Thanks: 7
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 30th October 2009, 08:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Did you run the script as root user? Make sure that you are logged in as root and dont use sudo.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th October 2009, 10:20
zalo zalo is offline
Member
 
Join Date: Jan 2006
Posts: 33
Thanks: 7
Thanked 0 Times in 0 Posts
Default

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

Last edited by zalo; 30th October 2009 at 10:29.
Reply With Quote
  #4  
Old 30th October 2009, 10:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 30th October 2009, 10:34
zalo zalo is offline
Member
 
Join Date: Jan 2006
Posts: 33
Thanks: 7
Thanked 0 Times in 0 Posts
Default

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

Thanks
Zalo
Reply With Quote
  #6  
Old 30th October 2009, 10:40
zalo zalo is offline
Member
 
Join Date: Jan 2006
Posts: 33
Thanks: 7
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #7  
Old 31st October 2009, 13:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Hm... It seems as if Apache isn't installed on your system. Can you check with YaST?
__________________
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
  #8  
Old 31st October 2009, 21:12
zalo zalo is offline
Member
 
Join Date: Jan 2006
Posts: 33
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Apache version 2.2.4-70.11 is installed according to YAST.


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
Reply With Quote
  #9  
Old 1st November 2009, 16:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
updatedb
locate apache
locate httpd
?
__________________
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
  #10  
Old 1st November 2009, 18:25
zalo zalo is offline
Member
 
Join Date: Jan 2006
Posts: 33
Thanks: 7
Thanked 0 Times in 0 Posts
 
Default

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
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
Problems with ISPConfig 2.2.33 Golden Installation/Configuration 2 18th September 2009 19:10
Mailserver problems - IspConfig Shella Installation/Configuration 2 6th May 2009 07:11
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
ISPCONFIG Anti-Spam filter not causing problems for user account vestport Server Operation 16 12th August 2008 23:22
Having Problems With Postfix ISPConfig - Sending & Receiving mails jeo_84 Installation/Configuration 1 4th March 2008 09:32


All times are GMT +2. The time now is 21:42.


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