View Single Post
  #5  
Old 28th July 2005, 14:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
I think there is an error in setup2. It test only httpd and stop on error. It don't test apache or apache2 command.
That's not correct. setup2 checks if there is a httpd, httpd2, apache or apache2, and creates a symlink called httpd if necessary:

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

  echo $q_httpd_check
  which httpd
  if [ $? != 0 ]; then
    which httpd2
    if [ $? != 0 ]; then
      error "httpd not found!";
    else
      ln -s `which httpd2` /usr/sbin/httpd
      echo OK
    fi
  else
    log "httpd found: `which httpd`"
    echo OK
  fi
fi  ## install_art == install

  echo $q_httpd_syntax_check
  httpd -t
  if [ $? != 0 ]; then
    error "$q_httpd_syntax_check_not_ok";
  fi
  echo $q_httpd_syntax_check_ok
  log "httpd syntax ok!"
After the installation, you should have a program "httpd", be it a binary or a symlink to httpd2, apache or apache2. You can check with

Code:
ls -l `which 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